diff --git a/www/config/PruneView.js b/www/config/PruneView.js index 100c037b..9935913f 100644 --- a/www/config/PruneView.js +++ b/www/config/PruneView.js @@ -41,7 +41,6 @@ Ext.define('PBS.config.PruneJobView', { } view.getStore().rstore.getProxy().setExtraParams(params); Proxmox.Utils.monStoreErrors(view, view.getStore().rstore); - this.reload(); }, addPruneJob: function() { diff --git a/www/datastore/PruneAndGC.js b/www/datastore/PruneAndGC.js index 4cb0d216..aab98dad 100644 --- a/www/datastore/PruneAndGC.js +++ b/www/datastore/PruneAndGC.js @@ -101,6 +101,7 @@ Ext.define('PBS.Datastore.PruneAndGC', { { xtype: 'pbsDatastoreGCOpts', title: gettext('Garbage Collection'), + itemId: 'datastore-gc', nodename: 'localhost', cbind: { datastore: '{datastore}', @@ -109,6 +110,7 @@ Ext.define('PBS.Datastore.PruneAndGC', { { xtype: 'pbsPruneJobView', nodename: 'localhost', + itemId: 'datastore-prune-jobs', flex: 1, minHeight: 200, cbind: { @@ -116,4 +118,16 @@ Ext.define('PBS.Datastore.PruneAndGC', { }, }, ], + initComponent: function() { + let me = this; + + let subPanelIds = me.items.map(el => el.itemId); + + me.callParent(); + + for (const itemId of subPanelIds) { + let component = me.getComponent(itemId); + component.relayEvents(me, ['activate', 'deactivate', 'destroy']); + } + }, });