'field[name=mpid]': {
change: function(field, value) {
field.validate();
- }
+ },
},
'#hdstorage': {
change: function(field, newValue) {
var vm = me.getViewModel();
vm.set('type', rec.data.type);
- }
- }
+ },
+ },
},
init: function(view) {
if (view.isCreate) {
vm.set('isIncludedInBackup', true);
}
- }
+ },
},
viewModel: {
mptype: '',
type: '',
confid: '',
- node: ''
+ node: '',
},
formulas: {
},
isBindOrRoot: function(get) {
return get('isBind') || get('isRoot');
- }
- }
+ },
+ },
},
column1: [
disabled: true,
bind: {
hidden: '{hasMP}',
- disabled: '{hasMP}'
+ disabled: '{hasMP}',
},
validator: function(value) {
var me = this.up('inputpanel');
}
/* returns a string above */
return true;
- }
+ },
},
{
xtype: 'pveDiskStorageSelector',
bind: {
hidden: '{hideStorSelector}',
disabled: '{hideStorSelector}',
- nodename: '{node}'
- }
+ nodename: '{node}',
+ },
},
{
xtype: 'textfield',
fieldLabel: gettext('Disk image'),
name: 'file',
bind: {
- hidden: '{!hideStorSelector}'
- }
- }
+ hidden: '{!hideStorSelector}',
+ },
+ },
],
column2: [
fieldLabel: gettext('Path'),
bind: {
hidden: '{isRoot}',
- disabled: '{isRoot}'
- }
+ disabled: '{isRoot}',
+ },
},
{
xtype: 'proxmoxcheckbox',
bind: {
hidden: '{isRoot}',
disabled: '{isBindOrRoot}',
- value: '{isIncludedInBackup}'
- }
- }
+ value: '{isIncludedInBackup}',
+ },
+ },
],
advancedColumn1: [
name: 'quota',
defaultValue: 0,
bind: {
- disabled: '{!quota}'
+ disabled: '{!quota}',
},
fieldLabel: gettext('Enable quota'),
listeners: {
disable: function() {
this.reset();
- }
- }
+ },
+ },
},
{
xtype: 'proxmoxcheckbox',
defaultValue: 0,
bind: {
hidden: '{isRoot}',
- disabled: '{isRoot}'
+ disabled: '{isRoot}',
},
- fieldLabel: gettext('Read-only')
+ fieldLabel: gettext('Read-only'),
},
{
xtype: 'proxmoxKVComboBox',
['noatime', 'noatime'],
['nodev', 'nodev'],
['noexec', 'noexec'],
- ['nosuid', 'nosuid']
+ ['nosuid', 'nosuid'],
],
multiSelect: true,
value: [],
- allowBlank: true
+ allowBlank: true,
},
],
comboItems: [
['__default__', Proxmox.Utils.defaultText],
['1', Proxmox.Utils.enabledText],
- ['0', Proxmox.Utils.disabledText]
+ ['0', Proxmox.Utils.disabledText],
],
value: '__default__',
bind: {
- disabled: '{isBind}'
+ disabled: '{isBind}',
},
- allowBlank: true
+ allowBlank: true,
},
{
xtype: 'proxmoxcheckbox',
inputValue: '0', // reverses the logic
name: 'replicate',
- fieldLabel: gettext('Skip replication')
- }
- ]
+ fieldLabel: gettext('Skip replication'),
+ },
+ ],
});
Ext.define('PVE.lxc.MountPointEdit', {
nodename: nodename,
unused: unused,
unprivileged: me.unprivileged,
- isCreate: me.isCreate
+ isCreate: me.isCreate,
});
var subject;
Ext.apply(me, {
subject: subject,
defaultFocus: me.confid !== 'rootfs' ? 'textfield[name=mp]' : 'tool',
- items: ipanel
+ items: ipanel,
});
me.callParent();
ipanel.setMountPoint(mp);
me.isValid(); // trigger validation
}
- }
+ },
});
- }
+ },
});