Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit ca5e5bb

Browse files
flummThomasLamprecht
authored andcommitted
ui: datastore/OptionView: only navigate up when we removed the datastore
and not on window close Signed-off-by: Dominik Csapak <[email protected]> (cherry picked from commit 82cae19d192c97a16b7aff45f6c97be878174ca4) Signed-off-by: Thomas Lamprecht <[email protected]>
1 parent 8191ff1 commit ca5e5bb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

www/datastore/OptionView.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ Ext.define('PBS.Datastore.Options', {
3333
note: gettext('Configuration change only, no data will be deleted.'),
3434
autoShow: true,
3535
taskName: 'delete-datastore',
36-
listeners: {
37-
destroy: () => {
38-
let navtree = Ext.ComponentQuery.query('navigationtree')[0];
39-
navtree.rstore.load();
40-
let mainview = me.getView().up('mainview');
41-
mainview.getController().redirectTo('pbsDataStores');
42-
},
36+
apiCallDone: (success) => {
37+
let navtree = Ext.ComponentQuery.query('navigationtree')[0];
38+
navtree.rstore.load();
39+
let mainview = me.getView().up('mainview');
40+
mainview.getController().redirectTo('pbsDataStores');
4341
},
4442
});
4543
},

0 commit comments

Comments
 (0)