mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 10:28:14 +00:00
ui: call more update store functions in the store scope
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
30f5d4769c
commit
6386068d0e
@ -1,7 +1,9 @@
|
|||||||
Ext.define('PVE.ceph.Log', {
|
Ext.define('PVE.ceph.Log', {
|
||||||
extend: 'Proxmox.panel.LogView',
|
extend: 'Proxmox.panel.LogView',
|
||||||
xtype: 'cephLogView',
|
xtype: 'cephLogView',
|
||||||
|
|
||||||
nodename: undefined,
|
nodename: undefined,
|
||||||
|
|
||||||
failCallback: function(response) {
|
failCallback: function(response) {
|
||||||
var me = this;
|
var me = this;
|
||||||
var msg = response.htmlStatus;
|
var msg = response.htmlStatus;
|
||||||
|
@ -237,8 +237,8 @@ Ext.define('PVE.node.CephPoolList', {
|
|||||||
selModel: sm,
|
selModel: sm,
|
||||||
tbar: [ create_btn, destroy_btn ],
|
tbar: [ create_btn, destroy_btn ],
|
||||||
listeners: {
|
listeners: {
|
||||||
activate: rstore.startUpdate,
|
activate: () => rstore.startUpdate(),
|
||||||
destroy: rstore.stopUpdate
|
destroy: () => rstore.stopUpdate(),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -83,9 +83,9 @@ Ext.define('PVE.dc.Log', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
activate: logstore.startUpdate,
|
activate: () => logstore.startUpdate(),
|
||||||
deactivate: logstore.stopUpdate,
|
deactivate: () => logstore.stopUpdate(),
|
||||||
destroy: logstore.stopUpdate
|
destroy: () => logstore.stopUpdate(),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -130,8 +130,8 @@ Ext.define('PVE.dc.Tasks', {
|
|||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
itemdblclick: run_task_viewer,
|
itemdblclick: run_task_viewer,
|
||||||
show: taskstore.startUpdate,
|
show: () => taskstore.startUpdate(),
|
||||||
destroy: taskstore.stopUpdate
|
destroy: () => taskstore.stopUpdate(),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ Ext.define('PVE.qemu.AgentIPView', {
|
|||||||
me.updateStatus(!success);
|
me.updateStatus(!success);
|
||||||
});
|
});
|
||||||
|
|
||||||
me.on('destroy', me.ipStore.stopUpdate);
|
me.on('destroy', me.ipStore.stopUpdate, me.ipStore);
|
||||||
|
|
||||||
// if we already have info about the vm, use it immediately
|
// if we already have info about the vm, use it immediately
|
||||||
if (me.rstore.getCount()) {
|
if (me.rstore.getCount()) {
|
||||||
|
@ -766,11 +766,9 @@ Ext.define('PVE.qemu.HardwareView', {
|
|||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.on('activate', me.rstore.startUpdate);
|
me.on('activate', me.rstore.startUpdate, me.rstore);
|
||||||
me.on('destroy', me.rstore.stopUpdate);
|
me.on('destroy', me.rstore.stopUpdate, me.rstore);
|
||||||
|
|
||||||
me.mon(me.getStore(), 'datachanged', function() {
|
me.mon(me.getStore(), 'datachanged', set_button_status, me);
|
||||||
set_button_status();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user