[pve-devel] [PATCH manager] mark item as changed when status is different

Dominik Csapak d.csapak at proxmox.com
Mon Apr 11 12:55:03 CEST 2016


to detect changes from running->paused and reverse,
since this is now reflected by the icons

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/tree/ResourceTree.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index 9b703a0..202a46f 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -279,7 +279,8 @@ Ext.define('PVE.tree.ResourceTree', {
 			// tree item has been updated
 			if ((item.data.text !== olditem.data.text) ||
 			    (item.data.running !== olditem.data.running) ||
-			    (item.data.template !== olditem.data.template)) {
+			    (item.data.template !== olditem.data.template) ||
+			    (item.data.status !== olditem.data.status)) {
 			    //console.log("changed node/text/running " + olditem.data.id);
 			    changed = true;
 			}
-- 
2.1.4




More information about the pve-devel mailing list