]> git.proxmox.com Git - pve-manager.git/commitdiff
mark item as changed when status is different
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Apr 2016 10:55:03 +0000 (12:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 11 Apr 2016 11:03:44 +0000 (13:03 +0200)
to detect changes from running->paused and reverse,
since this is now reflected by the icons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/tree/ResourceTree.js

index 9b703a0ced0a035467be7c5f9ebd44bf36c26ea0..202a46f9299ed23f020ea60d6ad1293aae6fd980 100644 (file)
@@ -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;
                        }