[pve-devel] applied: [PATCH manager] add reboot button to right-click menu for VMs

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Nov 30 14:40:10 CET 2019


On 11/29/19 5:44 PM, Oguz Bektas wrote:
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
> ---
>  www/manager6/qemu/CmdMenu.js | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/www/manager6/qemu/CmdMenu.js b/www/manager6/qemu/CmdMenu.js
> index b11c4545..afa794a7 100644
> --- a/www/manager6/qemu/CmdMenu.js
> +++ b/www/manager6/qemu/CmdMenu.js
> @@ -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']
> 

applied, thanks!




More information about the pve-devel mailing list