From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/6] ui: add tabs for remotes and move s3 endpoint config to it
Date: Tue, 22 Jul 2025 14:48:32 +0200 [thread overview]
Message-ID: <20250722124837.864242-2-c.ebner@proxmox.com> (raw)
In-Reply-To: <20250722124837.864242-1-c.ebner@proxmox.com>
As the s3 endpoint configuration might be considered a remote, move
it to the remotes menu item of the sidebar. To distinguish between
remote Proxmox Backup Server instances and S3 endpoints, create a
tabbed panel.
Further, rename current `Remotes` to `Remote Proxmox Backup Servers`
to distinguish between them.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
www/Makefile | 1 +
www/NavigationTree.js | 8 +----
www/config/RemoteView.js | 2 +-
www/config/RemotesOverview.js | 55 +++++++++++++++++++++++++++++++++++
4 files changed, 58 insertions(+), 8 deletions(-)
create mode 100644 www/config/RemotesOverview.js
diff --git a/www/Makefile b/www/Makefile
index 4a5cd1ff1..0c081d27f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -60,6 +60,7 @@ JSSRC= \
config/UserView.js \
config/TokenView.js \
config/RemoteView.js \
+ config/RemotesOverview.js \
config/TrafficControlView.js \
config/ACLView.js \
config/S3ClientView.js \
diff --git a/www/NavigationTree.js b/www/NavigationTree.js
index 6944c78f9..351500e78 100644
--- a/www/NavigationTree.js
+++ b/www/NavigationTree.js
@@ -53,7 +53,7 @@ Ext.define('PBS.store.NavigationStore', {
{
text: gettext('Remotes'),
iconCls: 'fa fa-server',
- path: 'pbsRemoteView',
+ path: 'pbsRemotesOverview',
leaf: true,
},
{
@@ -80,12 +80,6 @@ Ext.define('PBS.store.NavigationStore', {
path: 'pbsSubscription',
leaf: true,
},
- {
- text: gettext('S3 Remotes'),
- iconCls: 'fa fa-cloud-upload',
- path: 'pbsS3ClientView',
- leaf: true,
- },
],
},
{
diff --git a/www/config/RemoteView.js b/www/config/RemoteView.js
index ae1e0e90c..8b6d76fad 100644
--- a/www/config/RemoteView.js
+++ b/www/config/RemoteView.js
@@ -36,7 +36,7 @@ Ext.define('PBS.config.RemoteView', {
stateful: true,
stateId: 'grid-remotes',
- title: gettext('Remotes'),
+ title: gettext('Remote Proxmox Backup Servers'),
tools: [PBS.Utils.get_help_tool('backup-remote')],
diff --git a/www/config/RemotesOverview.js b/www/config/RemotesOverview.js
new file mode 100644
index 000000000..97004f060
--- /dev/null
+++ b/www/config/RemotesOverview.js
@@ -0,0 +1,55 @@
+Ext.define('PBS.config.RemotesOverview', {
+ extend: 'Ext.tab.Panel',
+ alias: 'widget.pbsRemotesOverview',
+
+ title: gettext('Remotes'),
+
+ stateId: 'pbs-remotes-panel',
+ stateful: true,
+
+ stateEvents: ['tabchange'],
+
+ applyState: function (state) {
+ let me = this;
+ if (state.tab !== undefined && me.rendered) {
+ me.setActiveTab(state.tab);
+ } else if (state.tab) {
+ // if we are not rendered yet, defer setting the activetab
+ setTimeout(function () {
+ me.setActiveTab(state.tab);
+ }, 10);
+ }
+ },
+
+ getState: function () {
+ let me = this;
+ return {
+ tab: me.getActiveTab().getItemId(),
+ };
+ },
+
+ border: false,
+ defaults: {
+ border: false,
+ },
+
+ items: [
+ {
+ xtype: 'pbsRemoteView',
+ iconCls: 'fa fa-server',
+ },
+ {
+ xtype: 'pbsS3ClientView',
+ iconCls: 'fa fa-cloud-upload',
+ },
+ ],
+
+ initComponent: function () {
+ let me = this;
+ // remove invalid activeTab settings
+ if (me.activeTab && !me.items.some((item) => item.itemId === me.activeTab)) {
+ delete me.activeTab;
+ }
+ me.callParent();
+ },
+});
--
2.47.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2025-07-22 12:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 12:48 [pbs-devel] [PATCH proxmox-backup 0/6] fix various s3 related ui/cli/doc issues Christian Ebner
2025-07-22 12:48 ` Christian Ebner [this message]
2025-07-22 12:48 ` [pbs-devel] [PATCH proxmox-backup 2/6] ui: use S3 endpoint over S3 client for ui elements Christian Ebner
2025-07-22 12:48 ` [pbs-devel] [PATCH proxmox-backup 3/6] cli: use `endpoint` over `client` for s3 endpoint subcommands Christian Ebner
2025-07-22 12:48 ` [pbs-devel] [PATCH proxmox-backup 4/6] docs: use `endpoint` over `client` for the s3 endpoint configuration Christian Ebner
2025-07-22 12:48 ` [pbs-devel] [PATCH proxmox-backup 5/6] ui: default for s3 overwrite-in-use to be disabled Christian Ebner
2025-07-22 12:48 ` [pbs-devel] [PATCH proxmox-backup 6/6] ui: s3 client edit: allow for https scheme prefix in endpoint input Christian Ebner
2025-07-22 20:25 ` [pbs-devel] applied: [PATCH proxmox-backup 0/6] fix various s3 related ui/cli/doc issues Thomas Lamprecht
2025-07-23 6:33 ` Christian Ebner
2025-07-23 7:27 ` Thomas Lamprecht
2025-07-23 7:37 ` Christian Ebner
2025-07-23 7:55 ` Thomas Lamprecht
2025-07-23 10:04 ` Christian Ebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250722124837.864242-2-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox