[pve-devel] [PATCH manager] disable the mountpoint selector and path field by default
Dominik Csapak
d.csapak at proxmox.com
Mon Apr 30 14:55:33 CEST 2018
since in the wizard, the validity check happens before the
viewmodel can set the visible/enabled state so this is invalid there,
even if the remaining panel is valid
setting it to disabled by default, makes the fields 'valid' at the
beginning but retain their behavior
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/MPEdit.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index cf8d6f02..63315cfd 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -160,6 +160,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
matchFieldWidth: false,
hidden: true,
allowBlank: false,
+ disabled: true,
bind: {
hidden: '{hasMP}',
disabled: '{hasMP}'
@@ -218,6 +219,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
value: '',
emptyText: gettext('/some/path'),
allowBlank: false,
+ disabled: true,
fieldLabel: gettext('Path'),
bind: {
hidden: '{isRoot}',
--
2.11.0
More information about the pve-devel
mailing list