mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-05 09:17:59 +03:00
ui: datastore summary: do single info-panel load on failure
Switch over using the controller of the info panel directly, avoiding firing events, and add a single store load to cause the mask-logic when the status update store goes from succeeding to failure. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fc2d288434
commit
668d8dfda4
@ -110,6 +110,7 @@ Ext.define('PBS.DataStoreInfo', {
|
||||
|
||||
startStore: function() { this.store.startUpdate(); },
|
||||
stopStore: function() { this.store.stopUpdate(); },
|
||||
doSingleStoreLoad: function() { this.store.load(); },
|
||||
|
||||
init: function(view) {
|
||||
let me = this;
|
||||
@ -378,7 +379,9 @@ Ext.define('PBS.DataStoreSummary', {
|
||||
me.statusStore.stopUpdate();
|
||||
me.rrdstore.stopUpdate();
|
||||
|
||||
me.down('pbsDataStoreInfo').fireEvent('deactivate');
|
||||
let infoPanelController = me.down('pbsDataStoreInfo').getController();
|
||||
infoPanelController.stopStore();
|
||||
infoPanelController.doSingleStoreLoad();
|
||||
|
||||
Proxmox.Utils.API2Request({
|
||||
url: `/config/datastore/${me.datastore}`,
|
||||
|
Loading…
Reference in New Issue
Block a user