[pve-devel] [PATCH manager] gui: qemu: add reboot button
Dominik Csapak
d.csapak at proxmox.com
Thu Sep 12 13:37:24 CEST 2019
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/qemu/Config.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index b56f3779..65b0cbbf 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -143,6 +143,14 @@ Ext.define('PVE.qemu.Config', {
},
menu: {
items: [{
+ text: gettext('Reboot'),
+ disabled: !caps.vms['VM.PowerMgmt'],
+ confirmMsg: Proxmox.Utils.format_task_description('qmreboot', vmid),
+ handler: function() {
+ vm_command("reboot");
+ },
+ iconCls: 'fa fa-refresh'
+ },{
text: gettext('Pause'),
disabled: !caps.vms['VM.PowerMgmt'],
confirmMsg: Proxmox.Utils.format_task_description('qmpause', vmid),
--
2.20.1
More information about the pve-devel
mailing list