[PATCH manager] close #4248: Add Reset button to VM right click menu
Amin Vakil
info at aminvakil.com
Sun Aug 3 20:43:45 CEST 2025
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 <info at aminvakil.com>
---
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
More information about the pve-devel
mailing list