ui: datastore/OptionView: only navigate up when we removed the datastore

and not on window close

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-06-04 11:44:06 +02:00 committed by Thomas Lamprecht
parent 3f5fbc5620
commit 82cae19d19
1 changed files with 5 additions and 7 deletions

View File

@ -33,14 +33,12 @@ Ext.define('PBS.Datastore.Options', {
note: gettext('Configuration change only, no data will be deleted.'),
autoShow: true,
taskName: 'delete-datastore',
listeners: {
destroy: () => {
apiCallDone: (success) => {
let navtree = Ext.ComponentQuery.query('navigationtree')[0];
navtree.rstore.load();
let mainview = me.getView().up('mainview');
mainview.getController().redirectTo('pbsDataStores');
},
},
});
},
},