[pve-devel] applied: [PATCH manager] disable the mountpoint selector and path field by default

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 2 08:45:18 CEST 2018


applied, thanks

On 4/30/18 2:55 PM, Dominik Csapak wrote:
> 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}',
> 





More information about the pve-devel mailing list