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>
(cherry picked from commit 82cae19d19
)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8191ff150e
commit
ca5e5bb67f
|
@ -33,14 +33,12 @@ Ext.define('PBS.Datastore.Options', {
|
||||||
note: gettext('Configuration change only, no data will be deleted.'),
|
note: gettext('Configuration change only, no data will be deleted.'),
|
||||||
autoShow: true,
|
autoShow: true,
|
||||||
taskName: 'delete-datastore',
|
taskName: 'delete-datastore',
|
||||||
listeners: {
|
apiCallDone: (success) => {
|
||||||
destroy: () => {
|
|
||||||
let navtree = Ext.ComponentQuery.query('navigationtree')[0];
|
let navtree = Ext.ComponentQuery.query('navigationtree')[0];
|
||||||
navtree.rstore.load();
|
navtree.rstore.load();
|
||||||
let mainview = me.getView().up('mainview');
|
let mainview = me.getView().up('mainview');
|
||||||
mainview.getController().redirectTo('pbsDataStores');
|
mainview.getController().redirectTo('pbsDataStores');
|
||||||
},
|
},
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue