From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 998711FF0B3 for ; Fri, 25 Sep 2026 11:44:55 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 13D0C21954; Fri, 25 Sep 2026 11:42:42 +0200 (CEST) From: Arthur Bied-Charreton To: pve-devel@lists.proxmox.com Subject: [PATCH pve-manager v3 15/16] ui: guest destroy: use let for non-constant variable bindings Date: Fri, 25 Sep 2026 11:42:29 +0200 Message-ID: <20260925094230.844917-16-a.bied-charreton@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260925094230.844917-1-a.bied-charreton@proxmox.com> References: <20260925094230.844917-1-a.bied-charreton@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.906 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: WLG4MU6QTMO4OPRFYZYGDWNWVIQQ2XAX X-Message-ID-Hash: WLG4MU6QTMO4OPRFYZYGDWNWVIQQ2XAX X-MailFrom: abied-charreton@jett.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: See [JS Style Guide]. [JS Style Guide] https://pve.proxmox.com/wiki/Javascript_Style_Guide#Variables Signed-off-by: Arthur Bied-Charreton --- www/manager6/window/SafeDestroyGuest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/window/SafeDestroyGuest.js b/www/manager6/window/SafeDestroyGuest.js index ee0c649c..45b277e5 100644 --- a/www/manager6/window/SafeDestroyGuest.js +++ b/www/manager6/window/SafeDestroyGuest.js @@ -37,10 +37,10 @@ Ext.define('PVE.window.SafeDestroyGuest', { getParams: function () { let me = this; - const purgeCheckbox = me.lookupReference('purgeCheckbox'); + let purgeCheckbox = me.lookupReference('purgeCheckbox'); me.params.purge = purgeCheckbox.checked ? 1 : 0; - const destroyUnreferencedCheckbox = me.lookupReference('destroyUnreferencedCheckbox'); + let destroyUnreferencedCheckbox = me.lookupReference('destroyUnreferencedCheckbox'); me.params['destroy-unreferenced-disks'] = destroyUnreferencedCheckbox.checked ? 1 : 0; return me.callParent(); -- 2.47.3