From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id DB63A1FF16F for ; Tue, 5 Aug 2025 10:38:04 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3E1ED9873; Tue, 5 Aug 2025 10:39:27 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Sun, 3 Aug 2025 22:13:45 +0330 X-Mailman-Approved-At: Tue, 05 Aug 2025 10:39:23 +0200 MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: Amin Vakil via pve-devel Precedence: list Cc: Amin Vakil X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] [PATCH manager] close #4248: Add Reset button to VM right click menu Content-Type: multipart/mixed; boundary="===============4109766906139538679==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============4109766906139538679== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 45594D0CB1 for ; Sun, 3 Aug 2025 20:44:25 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2798212676 for ; Sun, 3 Aug 2025 20:43:55 +0200 (CEST) Received: from mail.aminvakil.com (mail.aminvakil.com [178.63.189.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Sun, 3 Aug 2025 20:43:53 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3062D4124E for ; Sun, 3 Aug 2025 22:13:51 +0330 (+0330) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aminvakil.com; s=dkim; t=1754246633; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=KCEZjRaHNLMSEi2C8Naq6NHQndZxKT+ZB25MU2HGVlo=; b=B0+M2QQHVKwGou6KrAOfQq3FWvJvrl9LLyS8X4h0ARCApssby6UNkZdpHYTwlsUAc9YtaN 5VQWE2gg+Sa72q4zGbHUbppnUFtEq0tv79wwmUGm6y8Taw6mL1+lviaB2Tw3/IfEHge55I fhC83iafCrHkgYqNT4cwBrw3iYIfNHOWkrtr6kIg9Nj/BNLs9OKa4COFzHZhU+v0D+pdh9 CAdKf6/phRgWAknOWrC3i8NKrxjR2r1/s6N8NN7uVNrq+RLt0SlAXRHz3kD3TcWUhfwkOA T9ZQSEBdEeGNlcBEcMESCRoXOYjmhqPa6s88M3r80IHBIkLZHVCgqDzBHhKJuQ== From: Amin Vakil To: pve-devel@lists.proxmox.com Subject: [PATCH manager] close #4248: Add Reset button to VM right click menu Date: Sun, 3 Aug 2025 22:13:45 +0330 Message-ID: <20250803184350.33017-1-info@aminvakil.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.760 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Tue, 05 Aug 2025 10:39:23 +0200 This has been first brought up in #4248. https://bugzilla.proxmox.com/show_bug.cgi?id=4248 To add reset option for VMs. Also this patch does not add reset option to containers as they do not have this option and reboot is already present for containers. I've tested this locally by editing /usr/share/pve-manager/js/pvemanagerlib.js and it worked fine Signed-off-by: Amin Vakil --- www/manager6/qemu/CmdMenu.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/manager6/qemu/CmdMenu.js b/www/manager6/qemu/CmdMenu.js index 5fa9407d..adf64672 100644 --- a/www/manager6/qemu/CmdMenu.js +++ b/www/manager6/qemu/CmdMenu.js @@ -111,6 +111,13 @@ Ext.define('PVE.qemu.CmdMenu', { tooltip: Ext.String.format(gettext('Reboot {0}'), 'VM'), handler: () => confirmedVMCommand('reboot'), }, + { + text: gettext('Reset'), + iconCls: 'fa fa-fw fa-bolt', + disabled: stopped, + tooltip: Ext.String.format(gettext('Reset {0}'), 'VM'), + handler: () => confirmedVMCommand('reset'), + }, { xtype: 'menuseparator', hidden: -- 2.50.1 --===============4109766906139538679== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============4109766906139538679==--