ui: qemu: update grid button status with events from correct store
as we noticed at the container side, we should use diffStore in order to update the button status without delay. Effectively alls ObjectGrids, and thus their descendants, PendingObjectGrids use a DiffStore, where we have two effective stores, a remote store and a local, in-memory, proxy store. Co-developed-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6976163d1b
commit
141aba6b62
@ -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();
|
||||
});
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user