From de1f8f1d363e4b1fe0475a8c8f1f1320efc62c08 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 29 Apr 2020 11:09:35 +0200 Subject: [PATCH] Revert "gui: display DataStoreConfig above DataStoreContent" This reverts commit 555dfe7b8e87827c680f5e0cb53695036995bd54. --- www/NavigationTree.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www/NavigationTree.js b/www/NavigationTree.js index 52c2e740..e1004cad 100644 --- a/www/NavigationTree.js +++ b/www/NavigationTree.js @@ -18,6 +18,12 @@ Ext.define('PBS.store.NavigationStore', { path: 'pbsSystemConfiguration', expanded: true, children: [ + { + text: gettext('Data Store'), + iconCls: 'fa fa-archive', + path: 'pbsDataStoreConfig', + leaf: true + }, { text: gettext('Subscription'), iconCls: 'fa fa-support', @@ -61,17 +67,17 @@ Ext.define('PBS.view.main.NavigationTree', { let root = view.getStore().getRoot(); - if (!root.findChild('path', 'pbsDataStoreConfig', false)) { + if (!root.findChild('path', 'pbsDataStoreList', false)) { root.appendChild({ text: gettext('Data Store'), expanded: true, iconCls: 'fa fa-archive', - path: 'pbsDataStoreConfig', + path: 'pbsDataStoreList', leaf: false }); } - var list = root.findChild('path', 'pbsDataStoreConfig', false); + var list = root.findChild('path', 'pbsDataStoreList', false); var length = records.length; var lookup_hash = {}; for (var i = 0; i < length; i++) {