[pve-devel] [PATCH manager 4/4] reload lxc resources also on activate

Emmanuel Kasper e.kasper at proxmox.com
Wed Jul 6 11:20:47 CEST 2016


Reviewed-By: Emmanuel Kasper <e.kasper at proxmox.com>

On 07/05/2016 05:06 PM, Dominik Csapak wrote:
> in a previous commit (829ded13) we changed the reload
> from the activate event to afterrender, because
> activate will not be fired as a lazyitem
> 
> but this only fires once, so we also reload on activate.
> with the lazyitem/tabchange fix from a previous commit,
> this has now the correct behaviour
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> note: this needs the previous patch applied, else it has
> no effect
>  www/manager6/lxc/Resources.js | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/www/manager6/lxc/Resources.js b/www/manager6/lxc/Resources.js
> index 5393f39..355b903 100644
> --- a/www/manager6/lxc/Resources.js
> +++ b/www/manager6/lxc/Resources.js
> @@ -269,6 +269,7 @@ Ext.define('PVE.lxc.RessourceView', {
>  	    rows: rows,
>  	    listeners: {
>  		afterrender: reload,
> +		activate: reload,
>  		itemdblclick: run_editor,
>  		selectionchange: set_button_status
>  	    }
> 




More information about the pve-devel mailing list