]> git.proxmox.com Git - pve-manager.git/commit
ext6migrate: fix store load race condition
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 14 Mar 2016 12:41:22 +0000 (13:41 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 14 Mar 2016 16:16:37 +0000 (17:16 +0100)
commitf2a6ce6cf107c791de1e127bfe0055dbd20c9aaa
tree813c99d8a46e467248f036c691128628555a260c
parent27ea3c598132e64e703b99eae16edbb4e9d495a2
ext6migrate: fix store load race condition

when we click on a node/container/vm and quickly
click on something else, there might be a race condition,
where the store finished loading and we try to change
dom elements, which are not there anymore

so we change the store.on to me.mon, which
deletes the handler when the component is gone

in the logview panel we use API2Request, where
we cannot do this, so we check if the component
is destroyed manually

also we change this whenever we change a dom element
in a callback

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/Summary.js
www/manager6/form/ComboGrid.js
www/manager6/lxc/Config.js
www/manager6/node/Config.js
www/manager6/panel/LogView.js
www/manager6/qemu/Config.js
www/manager6/storage/ContentView.js