diff --git a/www/NavigationTree.js b/www/NavigationTree.js index 04de8dae..5f44aace 100644 --- a/www/NavigationTree.js +++ b/www/NavigationTree.js @@ -155,7 +155,7 @@ Ext.define('PBS.view.main.NavigationTree', { init: function(view) { view.rstore = Ext.create('Proxmox.data.UpdateStore', { autoStart: true, - interval: 5 * 1000, + interval: 15 * 1000, storeId: 'pbs-datastore-list', // NOTE: this is queried by selectors, avoid change! model: 'pbs-datastore-list', }); diff --git a/www/window/MaintenanceOptions.js b/www/window/MaintenanceOptions.js index 713da569..757c9fcf 100644 --- a/www/window/MaintenanceOptions.js +++ b/www/window/MaintenanceOptions.js @@ -21,6 +21,16 @@ Ext.define('PBS.window.MaintenanceOptions', { labelWidth: 120, }, + apiCallDone: function(success, response, options) { + if (success) { + let datastoreStore = Ext.data.StoreManager.lookup('pbs-datastore-list'); + if (datastoreStore) { + // delay a bit to allow the window to close and maintenance mode to take effect + setTimeout(() => datastoreStore.load(), 10); + } + } + }, + items: { xtype: 'inputpanel', onGetValues: function(values) {