ui: content: reload tree on succesful datastore add

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-15 16:03:16 +02:00
parent 508d644e87
commit e5824cd61f

View File

@ -483,10 +483,11 @@ Ext.define('PBS.DataStoreContent', {
autoShow: true, autoShow: true,
datastore: view.datastore, datastore: view.datastore,
namespace: view.namespace ?? '', namespace: view.namespace ?? '',
listeners: { apiCallDone: success => {
destroy: () => { if (success) {
view.down('pbsNamespaceSelector').store?.load(); view.down('pbsNamespaceSelector').store?.load();
}, me.reload();
}
}, },
}); });
}, },