From 668d8dfda41983c7dc17f3388a0215842a7c7331 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 25 Nov 2024 20:44:42 +0100 Subject: [PATCH] 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 --- www/datastore/Summary.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js index aaad9cbe..73e63a01 100644 --- a/www/datastore/Summary.js +++ b/www/datastore/Summary.js @@ -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}`,