matchFieldWidth: false,
listConfig: {
loadingText: gettext('Scanning...'),
- width: 350
+ width: 350,
},
doRawQuery: function() {
+ // do nothing
},
onTriggerClick: function() {
me.nfsServer = server;
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (!me.nodename) {
}
var store = Ext.create('Ext.data.Store', {
- fields: [ 'path', 'options' ],
+ fields: ['path', 'options'],
proxy: {
type: 'proxmox',
- url: '/api2/json/nodes/' + me.nodename + '/scan/nfs'
- }
+ url: '/api2/json/nodes/' + me.nodename + '/scan/nfs',
+ },
});
store.sort('path', 'ASC');
Ext.apply(me, {
- store: store
+ store: store,
});
me.callParent();
- }
+ },
});
Ext.define('PVE.storage.NFSInputPanel', {
onlineHelp: 'storage_nfs',
- options : [],
+ options: [],
onGetValues: function(values) {
var me = this;
if (values.options === '') {
delete values.options;
if (!me.isCreate) {
- values["delete"] = "options";
+ values.delete = "options";
}
}
setValues: function(values) {
var me = this;
if (values.options) {
- var res = values.options;
me.options = values.options.split(',');
me.options.forEach(function(item) {
var match = item.match(/^vers=(.*)$/);
return me.callParent([values]);
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
exportField.setServer(value);
exportField.setValue('');
}
- }
- }
+ },
+ },
},
{
xtype: me.isCreate ? 'pveNFSScan' : 'displayfield',
name: 'export',
value: '',
fieldLabel: 'Export',
- allowBlank: false
+ allowBlank: false,
},
{
xtype: 'pveContentTypeSelector',
value: 'images',
multiSelect: true,
fieldLabel: gettext('Content'),
- allowBlank: false
- }
- ];
-
- me.column2 = [
- {
- xtype: 'proxmoxintegerfield',
- fieldLabel: gettext('Max Backups'),
- disabled: true,
- name: 'maxfiles',
- reference: 'maxfiles',
- minValue: 0,
- maxValue: 365,
- value: me.isCreate ? '1' : undefined,
- allowBlank: false
- }
+ allowBlank: false,
+ },
];
- me.advancedColumn1 = [
+ me.advancedColumn2 = [
{
xtype: 'proxmoxKVComboBox',
fieldLabel: gettext('NFS Version'),
['3', '3'],
['4', '4'],
['4.1', '4.1'],
- ['4.2', '4.2']
- ]
- }
+ ['4.2', '4.2'],
+ ],
+ },
];
me.callParent();
- }
+ },
});