[pve-devel] [PATCH manager] qemu: update button status without delay
Oguz Bektas
o.bektas at proxmox.com
Tue Oct 29 15:50:17 CET 2019
as we noticed at the lxc side, we should use diffStore in order to
update the button status without delay.
Co-developed-by: Dominik Csapak <d.csapak at proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
www/manager6/qemu/HardwareView.js | 4 ++--
www/manager6/qemu/Options.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 3d029411..29cdb68c 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -754,9 +754,9 @@ Ext.define('PVE.qemu.HardwareView', {
me.callParent();
me.on('activate', me.rstore.startUpdate);
- me.on('destroy', me.rstore.stopUpdate);
+ me.on('destroy', me.rstore.stopUpdate);
- me.mon(me.rstore, 'refresh', function() {
+ me.mon(me.getStore(), 'datachanged', function() {
set_button_status();
});
}
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index 1545e1c8..1ec79a95 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -378,7 +378,7 @@ Ext.define('PVE.qemu.Options', {
me.on('destroy', me.rstore.stopUpdate);
me.on('deactivate', me.rstore.stopUpdate);
- me.rstore.on('datachanged', function() {
+ me.mon(me.getStore(), 'datachanged', function() {
set_button_status();
});
}
--
2.20.1
More information about the pve-devel
mailing list