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

Dominik Csapak d.csapak at proxmox.com
Tue Jul 5 17:06:57 CEST 2016


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
 	    }
-- 
2.1.4




More information about the pve-devel mailing list