]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: move disks/directory stuff to tab panel
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Nov 2020 09:15:44 +0000 (10:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Nov 2020 09:15:44 +0000 (10:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
docs/storage.rst
www/Makefile
www/NavigationTree.js
www/OnlineHelpInfo.js
www/panel/StorageAndDisks.js [new file with mode: 0644]

index ea3129820d1a177945cf3ed99d12041f68aebf9f..45807b214baa1977caebe9323ce70c8efa63e5a3 100644 (file)
@@ -1,6 +1,8 @@
 Storage
 =======
 
+.. _storage_disk_management:
+
 Disk Management
 ---------------
 
@@ -121,6 +123,8 @@ number of backups to keep in that store. :ref:`backup-pruning` and
 periodically based on a configured schedule (see :ref:`calendar-events`) per datastore.
 
 
+.. _storage_datastore_create:
+
 Creating a Datastore
 ^^^^^^^^^^^^^^^^^^^^
 .. image:: images/screenshots/pbs-gui-datastore-create-general.png
index 192341ec7f91ada0314c3d634b18c917794258ea..bfea32fa6ea91e692985dcc62e90839de1df5412 100644 (file)
@@ -43,6 +43,7 @@ JSSRC=                                                        \
        panel/Tasks.js                                  \
        panel/XtermJsConsole.js                         \
        panel/AccessControl.js                          \
+       panel/StorageAndDisks.js                        \
        ZFSList.js                                      \
        DirectoryList.js                                \
        LoginView.js                                    \
index e02704393fc5d738f7a5462f061bf96791395561..e013318a34f1e4072b14a78b3db80c8d163652f2 100644 (file)
@@ -62,24 +62,10 @@ Ext.define('PBS.store.NavigationStore', {
                        leaf: true,
                    },
                    {
-                       text: gettext('Disks'),
+                       text: gettext('Storage / Disks'),
                        iconCls: 'fa fa-hdd-o',
-                       path: 'pmxDiskList',
-                       leaf: false,
-                       children: [
-                           {
-                               text: Proxmox.Utils.directoryText,
-                               iconCls: 'fa fa-folder',
-                               path: 'pbsDirectoryList',
-                               leaf: true,
-                           },
-                           {
-                               text: "ZFS",
-                               iconCls: 'fa fa-th-large',
-                               path: 'pbsZFSList',
-                               leaf: true,
-                           },
-                       ],
+                       path: 'pbsStorageAndDiskPanel',
+                       leaf: true,
                    },
                ],
            },
index 8b251ff48f3c096fbce3e19bcf63d9889d897be7..b206e47ce54e6274121b1174e2967c782f5b6fbc 100644 (file)
@@ -31,6 +31,10 @@ const proxmoxOnlineHelpInfo = {
     "link": "/docs/managing-remotes.html#syncjobs",
     "title": "Sync Jobs"
   },
+  "storage-disk-management": {
+    "link": "/docs/storage.html#storage-disk-management",
+    "title": "Disk Management"
+  },
   "datastore-intro": {
     "link": "/docs/storage.html#datastore-intro",
     "title": "Datastore"
diff --git a/www/panel/StorageAndDisks.js b/www/panel/StorageAndDisks.js
new file mode 100644 (file)
index 0000000..5fd6faf
--- /dev/null
@@ -0,0 +1,37 @@
+Ext.define('PBS.StorageAndDiskPanel', {
+    extend: 'Ext.tab.Panel',
+    alias: 'widget.pbsStorageAndDiskPanel',
+    mixins: ['Proxmox.Mixin.CBind'],
+
+    title: gettext('Storage / Disks'),
+
+    tools: [PBS.Utils.get_help_tool("storage-disk-management")],
+
+    border: false,
+    defaults: {
+       border: false,
+    },
+
+    items: [
+       {
+           xtype: 'pmxDiskList',
+           title: gettext('Disks'),
+           itemId: 'disks',
+           iconCls: 'fa fa-hdd-o',
+       },
+       {
+           xtype: 'pbsDirectoryList',
+           title: Proxmox.Utils.directoryText,
+           itemId: 'directorystorage',
+           iconCls: 'fa fa-folder',
+       },
+       {
+           xtype: 'pbsZFSList',
+           title: "ZFS",
+           nodename: 'localhost',
+           iconCls: 'fa fa-th-large',
+           itemId: 'zfsstorage',
+       },
+    ],
+
+});