]> git.proxmox.com Git - pmg-gui.git/commitdiff
Make Backup/Restore panel a menuentry
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 16 Nov 2020 11:01:16 +0000 (12:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Nov 2020 11:34:03 +0000 (12:34 +0100)
Move it away from the tab list in the Configuration entry to a submenu in
preparation for adding PBS integration

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
js/BackupConfiguration.js [new file with mode: 0644]
js/Makefile
js/NavigationTree.js
js/SystemConfiguration.js

diff --git a/js/BackupConfiguration.js b/js/BackupConfiguration.js
new file mode 100644 (file)
index 0000000..35b50a4
--- /dev/null
@@ -0,0 +1,18 @@
+Ext.define('PMG.BackupConfiguration', {
+    extend: 'Ext.tab.Panel',
+    alias: 'widget.pmgBackupConfiguration',
+
+    title: gettext('Backup'),
+
+    border: false,
+    defaults: { border: false },
+
+    items: [
+       {
+           itemId: 'local',
+           title: gettext('Local Backup/Restore'),
+           xtype: 'pmgBackupRestore',
+       },
+   ],
+});
+
index e60d638b55893d08d4c0a0185bf5885d23121017..47eabb73fb021ba99918667de9526cb93e2008f0 100644 (file)
@@ -35,6 +35,7 @@ JSSRC=                                                        \
        RuleConfiguration.js                            \
        SystemOptions.js                                \
        Subscription.js                                 \
+       BackupConfiguration.js                          \
        BackupRestore.js                                \
        SystemConfiguration.js                          \
        MailProxyRelaying.js                            \
index 0ea0d2f1c7b98b8c81999790f68683efabcee864..ac01fd6a0212c24a9f97fe2da217c32bd12366b9 100644 (file)
@@ -86,6 +86,12 @@ Ext.define('PMG.store.NavigationStore', {
                        path: 'pmgSubscription',
                        leaf: true,
                    },
+                   {
+                       text: gettext('Backup/Restore'),
+                       iconCls: 'fa fa-floppy-o',
+                       path: 'pmgBackupConfiguration',
+                       leaf: true,
+                   },
                ],
            },
            {
index 37cb3e44e0bc4473b4b0c0b7198d8e2f875f49c0..51b558a62cf51553db1318dfb7771372177be499 100644 (file)
@@ -49,10 +49,6 @@ Ext.define('PMG.SystemConfiguration', {
             title: gettext('Options'),
            xtype: 'pmgSystemOptions',
        },
-       {
-           itemId: 'backup',
-           xtype: 'pmgBackupRestore',
-       },
     ],
 
     initComponent: function() {