On June 24, 2020 9:32 am, Dominik Csapak wrote:
> so that each new instance has an empty mounts list
> 
> Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
> ---
> @fabian @oguz, i remembered that i know this issue and had a fix already^^
>  www/manager6/lxc/FeaturesEdit.js | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/www/manager6/lxc/FeaturesEdit.js 
> b/www/manager6/lxc/FeaturesEdit.js
> index 1275a2e0..e0b851de 100644
> --- a/www/manager6/lxc/FeaturesEdit.js
> +++ b/www/manager6/lxc/FeaturesEdit.js
> @@ -108,7 +108,13 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
>           }
>           this.callParent([res]);
>       }
> -    }
> +    },
> +
> +    initComponent: function() {
> +     let me = this;
> +     me.mounts = []; // reset state
> +     me.callParent();
> +    },
>  });
>  
>  Ext.define('PVE.lxc.FeaturesEdit', {
> -- 
> 2.20.1
> 
> 
> 

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to