xtype: 'pveMDevSelector',
store: {
- fields: [ 'type','available', 'description' ],
+ fields: [ 'type', 'available', 'description' ],
filterOnLoad: true,
sorters: [
{
property : 'type',
- direction: 'ASC'
- }
- ]
+ direction: 'ASC',
+ },
+ ],
},
autoSelect: false,
valueField: 'type',
{
header: gettext('Type'),
dataIndex: 'type',
- flex: 1
+ flex: 1,
},
{
header: gettext('Available'),
dataIndex: 'available',
- width: 80
+ width: 80,
},
{
header: gettext('Description'),
}
return value.split('\n').join('<br>');
- }
- }
- ]
+ },
+ },
+ ],
},
setPciID: function(pciid, force) {
var me = this;
me.store.setProxy({
type: 'proxmox',
- url: '/api2/json/nodes/' + me.nodename + '/hardware/pci/' + me.pciid + '/mdev'
+ url: '/api2/json/nodes/' + me.nodename + '/hardware/pci/' + me.pciid + '/mdev',
});
me.store.load();
},
if (me.pciid) {
me.setPciID(me.pciid, true);
}
- }
+ },
});