public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-manager 1/1] sdn: wireguard: dont disable name field on creating external node
@ 2026-05-15 13:50 Stefan Hanreich
  2026-05-15 14:06 ` Dominik Csapak
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Stefan Hanreich @ 2026-05-15 13:50 UTC (permalink / raw)
  To: pve-devel

The logic for disabling the node_id field for external nodes was
wrong, leading to the name field being disable in the node creation
dialog. This prevents users from creating external WireGuard nodes.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
 www/manager6/sdn/fabrics/wireguard/NodeEdit.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/manager6/sdn/fabrics/wireguard/NodeEdit.js b/www/manager6/sdn/fabrics/wireguard/NodeEdit.js
index 69ef85c28..8393ee4a8 100644
--- a/www/manager6/sdn/fabrics/wireguard/NodeEdit.js
+++ b/www/manager6/sdn/fabrics/wireguard/NodeEdit.js
@@ -18,6 +18,12 @@ Ext.define('PVE.sdn.Fabric.WireGuard.Node.Edit', {
                 isPveNode: true,
             },
         },
+        formulas: {
+            disableNameField: function(get) {
+                let me = this;
+                return !me.getView().isCreate || get('current.isPveNode');
+            },
+        }
     },
 
     additionalItems: [
@@ -28,9 +34,7 @@ Ext.define('PVE.sdn.Fabric.WireGuard.Node.Edit', {
             name: 'node_id',
             bind: {
                 hidden: '{current.isPveNode}',
-            },
-            cbind: {
-                disabled: '{!isCreate}',
+                disabled: '{disableNameField}',
             },
             allowBlank: false,
         },
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-16 18:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15 13:50 [PATCH pve-manager 1/1] sdn: wireguard: dont disable name field on creating external node Stefan Hanreich
2026-05-15 14:06 ` Dominik Csapak
2026-05-15 14:24 ` Lukas Sichert
2026-05-15 14:58 ` Stefan Hanreich
2026-05-16 18:59 ` applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal