[pbs-devel] [PATCH proxmox-backup 1/1] ui: datastore/OptionView: only navigate up when we removed the datastore

Dominik Csapak d.csapak at proxmox.com
Fri Jun 4 11:44:06 CEST 2021


and not on window close

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/datastore/OptionView.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js
index 98152dce..5a5e85be 100644
--- a/www/datastore/OptionView.js
+++ b/www/datastore/OptionView.js
@@ -33,13 +33,11 @@ Ext.define('PBS.Datastore.Options', {
 		note: gettext('Configuration change only, no data will be deleted.'),
 		autoShow: true,
 		taskName: 'delete-datastore',
-		listeners: {
-		    destroy: () => {
-			let navtree = Ext.ComponentQuery.query('navigationtree')[0];
-			navtree.rstore.load();
-			let mainview = me.getView().up('mainview');
-			mainview.getController().redirectTo('pbsDataStores');
-		    },
+		apiCallDone: (success) => {
+		    let navtree = Ext.ComponentQuery.query('navigationtree')[0];
+		    navtree.rstore.load();
+		    let mainview = me.getView().up('mainview');
+		    mainview.getController().redirectTo('pbsDataStores');
 		},
 	    });
 	},
-- 
2.20.1






More information about the pbs-devel mailing list