]> git.proxmox.com Git - pve-manager.git/commit
update leaf nodes instead of removing / readding them
authorEmmanuel Kasper <e.kasper@proxmox.com>
Mon, 14 Mar 2016 09:31:43 +0000 (10:31 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 14 Mar 2016 16:02:46 +0000 (17:02 +0100)
commitd0e96c0d5043a750fe597c464fec383d2bc50158
tree59d3219d4cc0c4ac47998c749315e6dc6b3e7ca9
parent2618ee978218e501eff42b47994f7aec2bb5f8ab
update leaf nodes instead of removing / readding them

if the selected node has its status changed between stop &
running, the node was removed and then readded
during the remove / add process the 'selected' status of the node
was lost if it has one

instead of deleting / readding the node, we update now its content
this was the default behaviour for server nodes, but not for leaf nodes

this fixes a graphical bug where starting/stopping a VM/container would lose
the current selection in the ressource tree
www/manager6/tree/ResourceTree.js