43222aab85
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
72 lines
1.3 KiB
JavaScript
72 lines
1.3 KiB
JavaScript
Ext.define('PVE.storage.StatusView', {
|
|
extend: 'Proxmox.panel.StatusView',
|
|
alias: 'widget.pveStorageStatusView',
|
|
|
|
height: 230,
|
|
title: gettext('Status'),
|
|
|
|
layout: {
|
|
type: 'vbox',
|
|
align: 'stretch',
|
|
},
|
|
|
|
defaults: {
|
|
xtype: 'pmxInfoWidget',
|
|
padding: '0 30 5 30',
|
|
},
|
|
items: [
|
|
{
|
|
xtype: 'box',
|
|
height: 30,
|
|
},
|
|
{
|
|
itemId: 'enabled',
|
|
title: gettext('Enabled'),
|
|
printBar: false,
|
|
textField: 'disabled',
|
|
renderer: Proxmox.Utils.format_neg_boolean,
|
|
},
|
|
{
|
|
itemId: 'active',
|
|
title: gettext('Active'),
|
|
printBar: false,
|
|
textField: 'active',
|
|
renderer: Proxmox.Utils.format_boolean,
|
|
},
|
|
{
|
|
itemId: 'content',
|
|
title: gettext('Content'),
|
|
printBar: false,
|
|
textField: 'content',
|
|
renderer: PVE.Utils.format_content_types,
|
|
},
|
|
{
|
|
itemId: 'type',
|
|
title: gettext('Type'),
|
|
printBar: false,
|
|
textField: 'type',
|
|
renderer: PVE.Utils.format_storage_type,
|
|
},
|
|
{
|
|
xtype: 'box',
|
|
height: 10,
|
|
},
|
|
{
|
|
itemId: 'usage',
|
|
title: gettext('Usage'),
|
|
valueField: 'used',
|
|
maxField: 'total',
|
|
renderer: (val, max) => {
|
|
if (max === undefined) {
|
|
return val;
|
|
}
|
|
return Proxmox.Utils.render_size_usage(val, max, true);
|
|
},
|
|
},
|
|
],
|
|
|
|
updateTitle: function() {
|
|
// nothing
|
|
},
|
|
});
|