]> git.proxmox.com Git - proxmox-backup.git/commitdiff
Revert "gui: display DataStoreConfig above DataStoreContent"
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Apr 2020 09:09:35 +0000 (11:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Apr 2020 09:09:35 +0000 (11:09 +0200)
This reverts commit 555dfe7b8e87827c680f5e0cb53695036995bd54.

www/NavigationTree.js

index 52c2e74087c398fbb2fe0ceccdccd4f1a4a4d680..e1004cada7b02ecc24b49a40829884dcebfbeb36 100644 (file)
@@ -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++) {