From: Hannes Laimer <h.laimer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager 1/3] ui: sdn: improve wireguard node edit dialog with no interfaces
Date: Mon, 18 May 2026 17:07:45 +0200 [thread overview]
Message-ID: <20260518150747.103342-2-h.laimer@proxmox.com> (raw)
In-Reply-To: <20260518150747.103342-1-h.laimer@proxmox.com>
The list collapsed to a thin strip and the right pane stayed empty,
making the dialog look broken when none had been added yet.
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
.../sdn/fabrics/wireguard/InterfacePanel.js | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/www/manager6/sdn/fabrics/wireguard/InterfacePanel.js b/www/manager6/sdn/fabrics/wireguard/InterfacePanel.js
index 9db453a0..c3376011 100644
--- a/www/manager6/sdn/fabrics/wireguard/InterfacePanel.js
+++ b/www/manager6/sdn/fabrics/wireguard/InterfacePanel.js
@@ -162,6 +162,8 @@ Ext.define('PVE.sdn.Fabric.WireGuard.InterfacePanel', {
xtype: 'pveSDNFabricWireGuardInterfacePanel',
+ minHeight: 200,
+
layout: {
type: 'hbox',
align: 'stretch',
@@ -212,6 +214,10 @@ Ext.define('PVE.sdn.Fabric.WireGuard.InterfacePanel', {
flex: 1,
margin: '0 0 10 0',
hideHeaders: true,
+ viewConfig: {
+ emptyText: gettext('No interfaces configured'),
+ deferEmptyText: false,
+ },
columns: [
{
text: gettext('Name'),
@@ -280,6 +286,31 @@ Ext.define('PVE.sdn.Fabric.WireGuard.InterfacePanel', {
},
],
},
+ {
+ xtype: 'panel',
+ border: false,
+ flex: 1,
+ width: 300,
+ layout: {
+ type: 'vbox',
+ pack: 'center',
+ align: 'center',
+ },
+ bind: {
+ hidden: '{selectedInterface}',
+ },
+ items: [
+ {
+ xtype: 'component',
+ html: gettext('Select an interface to configure, or add a new one.'),
+ style: {
+ color: '#888',
+ 'font-style': 'italic',
+ 'text-align': 'center',
+ },
+ },
+ ],
+ },
{
xtype: 'form',
border: false,
--
2.47.3
next prev parent reply other threads:[~2026-05-18 15:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-18 15:07 [PATCH pve-manager 0/3] wireguard fabric node ui touch-ups Hannes Laimer
2026-05-18 15:07 ` Hannes Laimer [this message]
2026-05-18 15:07 ` [PATCH pve-manager 2/3] ui: sdn: avoid flicker when opening wireguard dialogs Hannes Laimer
2026-05-18 15:07 ` [PATCH pve-manager 3/3] ui: sdn: skip delete confirmation for unsaved wireguard interfaces Hannes Laimer
2026-05-18 20:06 ` applied: [PATCH pve-manager 0/3] wireguard fabric node ui touch-ups Thomas Lamprecht
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=20260518150747.103342-2-h.laimer@proxmox.com \
--to=h.laimer@proxmox.com \
--cc=pve-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