From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 7AA1963CDD for ; Wed, 28 Oct 2020 19:54:56 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A624422AC2 for ; Wed, 28 Oct 2020 19:54:52 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id AC2AA229E3 for ; Wed, 28 Oct 2020 19:54:48 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 74B9D45F7E for ; Wed, 28 Oct 2020 19:54:48 +0100 (CET) From: Stoiko Ivanov To: pmg-devel@pve.proxmox.com Date: Wed, 28 Oct 2020 19:54:30 +0100 Message-Id: <20201028185432.23067-15-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201028185432.23067-1-s.ivanov@proxmox.com> References: <20201028185432.23067-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.089 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pmg-devel] [PATCH pmg-gui 1/3] Make Backup/Restore panel a menuentry X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 18:54:56 -0000 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 --- js/BackupConfiguration.js | 18 ++++++++++++++++++ js/Makefile | 1 + js/NavigationTree.js | 6 ++++++ js/SystemConfiguration.js | 4 ---- 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 js/BackupConfiguration.js diff --git a/js/BackupConfiguration.js b/js/BackupConfiguration.js new file mode 100644 index 0000000..35b50a4 --- /dev/null +++ b/js/BackupConfiguration.js @@ -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', + }, + ], +}); + diff --git a/js/Makefile b/js/Makefile index badf7ab..a40f11f 100644 --- a/js/Makefile +++ b/js/Makefile @@ -35,6 +35,7 @@ JSSRC= \ RuleConfiguration.js \ SystemOptions.js \ Subscription.js \ + BackupConfiguration.js \ BackupRestore.js \ SystemConfiguration.js \ MailProxyRelaying.js \ diff --git a/js/NavigationTree.js b/js/NavigationTree.js index 0ea0d2f..ac01fd6 100644 --- a/js/NavigationTree.js +++ b/js/NavigationTree.js @@ -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, + }, ], }, { diff --git a/js/SystemConfiguration.js b/js/SystemConfiguration.js index 37cb3e4..51b558a 100644 --- a/js/SystemConfiguration.js +++ b/js/SystemConfiguration.js @@ -49,10 +49,6 @@ Ext.define('PMG.SystemConfiguration', { title: gettext('Options'), xtype: 'pmgSystemOptions', }, - { - itemId: 'backup', - xtype: 'pmgBackupRestore', - }, ], initComponent: function() { -- 2.20.1