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 29A091FF16F for ; Tue, 5 Aug 2025 10:38:01 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CD1BC983F; Tue, 5 Aug 2025 10:39:26 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Sun, 3 Aug 2025 22:04:16 +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="===============4439293802967319600==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============4439293802967319600== 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 E0E55D0D12 for ; Sun, 3 Aug 2025 20:44:16 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C0D441267C for ; Sun, 3 Aug 2025 20:44:16 +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:44:15 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8575241596 for ; Sun, 3 Aug 2025 22:04:19 +0330 (+0330) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aminvakil.com; s=dkim; t=1754246061; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=KCEZjRaHNLMSEi2C8Naq6NHQndZxKT+ZB25MU2HGVlo=; b=E4q2ZPl4H9JcNPqx1sWkYOIS5yKrGe0HqRIZ6GTCPhMwzLXCUFqD0LEexcayfzI1YF5T6S fIJmkpvObQMrLUTf2kF+pAOHLEHM/LFp75Lquiu8p8cGQhmEahSB/fZ06UHkLDtFLsC+Rc 410iMb36M3fWqA5nQ3rzBfUxvHAm+LaGVXnU9V60+ymAzr4cGFoXyUTPGyF3vmQeZ5rSMw oMr609A6vP/xt37L2JHy7UCvL4IwRL8mfIXob41lB0d3BjXlnijzj89DAiIoY/GT0uW3L6 SCYKOnSTLNOfH3arn8iZAU1Ale9y5kKk+tt/ms0T+hxJ+CesCiqFwZgc3D6uqw== 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:04:16 +0330 Message-ID: <20250803183418.31593-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.709 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 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 --===============4439293802967319600== 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 --===============4439293802967319600==--