[pve-devel] applied: [PATCH manager] gui: qemu: add reboot button

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Sep 19 14:14:14 CEST 2019


On 12.09.19 13:37, Dominik Csapak wrote:
> 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),
> 

applied, with followup adding tooltip allowing users to more easily understand
what happens.




More information about the pve-devel mailing list