add reboot button to right-click menu for VMs
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
parent
2e0f78405d
commit
b8f34731da
@ -133,6 +133,22 @@ Ext.define('PVE.qemu.CmdMenu', {
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
text: gettext('Reboot'),
|
||||
iconCls: 'fa fa-fw fa-refresh',
|
||||
disabled: stopped,
|
||||
tooltip: Ext.String.format(gettext('Reboot {0}'), 'VM'),
|
||||
handler: function() {
|
||||
var msg = Proxmox.Utils.format_task_description('qmreboot', vmid);
|
||||
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||
if (btn !== 'yes') {
|
||||
return;
|
||||
}
|
||||
|
||||
vm_command("reboot");
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
xtype: 'menuseparator',
|
||||
hidden: (standalone || !caps.vms['VM.Migrate']) && !caps.vms['VM.Allocate'] && !caps.vms['VM.Clone']
|
||||
|
Loading…
x
Reference in New Issue
Block a user