On 12.09.19 13:37, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csa...@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.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to