From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id AEC811FF14C for ; Fri, 15 May 2026 16:25:01 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id ABC4C105C9; Fri, 15 May 2026 16:24:59 +0200 (CEST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 15 May 2026 16:24:56 +0200 Message-Id: Subject: Re: [PATCH pve-manager 1/1] sdn: wireguard: dont disable name field on creating external node From: "Lukas Sichert" To: "Stefan Hanreich" , References: <20260515135002.351323-1-s.hanreich@proxmox.com> In-Reply-To: <20260515135002.351323-1-s.hanreich@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1778855089754 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.497 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: TKAVKZYMACSEDDFT4AVK4SEG2JU2FYYC X-Message-ID-Hash: TKAVKZYMACSEDDFT4AVK4SEG2JU2FYYC X-MailFrom: l.sichert@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Tested-by: Lukas Sichert On 2026-05-15 15:50, Stefan Hanreich wrote: > 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 > --- > 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/manager= 6/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 =3D this; > + return !me.getView().isCreate || get('current.isPveNode'= ); > + }, > + } > }, > =20 > 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, > }, > --=20 > 2.47.3