ui: trigger datastore update after maintenance mode edit
This provides immediate feedback for adding the respective icon in
the navigation tree entry most of the time, and we can then increase
the query period of the datastore list store to the original 15
again, as it was lowered to 5 seconds for just this reason in commit
fbd6f54f39
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user