From e5824cd61ff07092bb72e4bb3cee6d3a090c4080 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 15 May 2022 16:03:16 +0200 Subject: [PATCH] ui: content: reload tree on succesful datastore add Signed-off-by: Thomas Lamprecht --- www/datastore/Content.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/datastore/Content.js b/www/datastore/Content.js index ec993381..8b14db13 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -483,10 +483,11 @@ Ext.define('PBS.DataStoreContent', { autoShow: true, datastore: view.datastore, namespace: view.namespace ?? '', - listeners: { - destroy: () => { + apiCallDone: success => { + if (success) { view.down('pbsNamespaceSelector').store?.load(); - }, + me.reload(); + } }, }); },