queryMode: 'local',
editable: false,
listConfig: {
- loadingText: gettext('Scanning...')
+ loadingText: gettext('Scanning...'),
},
initComponent : function() {
var me = this;
fields: [ 'pool', 'size', 'free' ],
proxy: {
type: 'proxmox',
- url: '/api2/json/nodes/' + me.nodename + '/scan/zfs'
- }
+ url: '/api2/json/nodes/' + me.nodename + '/scan/zfs',
+ },
});
store.sort('pool', 'ASC');
Ext.apply(me, {
- store: store
+ store: store,
});
me.callParent();
- }
+ },
});
Ext.define('PVE.storage.ZFSPoolInputPanel', {
me.column1.push(Ext.create('PVE.storage.ZFSPoolSelector', {
name: 'pool',
fieldLabel: gettext('ZFS Pool'),
- allowBlank: false
+ allowBlank: false,
}));
} else {
me.column1.push(Ext.createWidget('displayfield', {
name: 'pool',
value: '',
fieldLabel: gettext('ZFS Pool'),
- allowBlank: false
+ allowBlank: false,
}));
}
name: 'content',
value: ['images', 'rootdir'],
multiSelect: true,
- allowBlank: false
+ allowBlank: false,
});
me.column2 = [
{
name: 'sparse',
checked: false,
uncheckedValue: 0,
- fieldLabel: gettext('Thin provision')
+ fieldLabel: gettext('Thin provision'),
},
{
xtype: 'textfield',
name: 'blocksize',
emptyText: '8k',
fieldLabel: gettext('Block Size'),
- allowBlank: true
- }
+ allowBlank: true,
+ },
];
me.callParent();
- }
+ },
});