From: Thomas Lamprecht Date: Mon, 25 Nov 2019 05:40:50 +0000 (+0100) Subject: ui: lxc: switch reboot and stop button to match VMs X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ba3c982ed0ae6b11e391534178bf2c982db41f3e;p=pve-manager.git ui: lxc: switch reboot and stop button to match VMs Signed-off-by: Thomas Lamprecht --- diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js index 60c440bb..a250b7ce 100644 --- a/www/manager6/lxc/Config.js +++ b/www/manager6/lxc/Config.js @@ -62,6 +62,16 @@ Ext.define('PVE.lxc.Config', { }, menu: { items:[{ + text: gettext('Reboot'), + disabled: !caps.vms['VM.PowerMgmt'], + confirmMsg: Proxmox.Utils.format_task_description('vzreboot', vmid), + tooltip: Ext.String.format(gettext('Reboot {0}'), 'CT'), + handler: function() { + vm_command("reboot"); + }, + iconCls: 'fa fa-refresh' + }, + { text: gettext('Stop'), disabled: !caps.vms['VM.PowerMgmt'], confirmMsg: Proxmox.Utils.format_task_description('vzstop', vmid), @@ -71,15 +81,6 @@ Ext.define('PVE.lxc.Config', { vm_command("stop"); }, iconCls: 'fa fa-stop' - },{ - text: gettext('Reboot'), - disabled: !caps.vms['VM.PowerMgmt'], - confirmMsg: Proxmox.Utils.format_task_description('vzreboot', vmid), - tooltip: Ext.String.format(gettext('Reboot {0}'), 'CT'), - handler: function() { - vm_command("reboot"); - }, - iconCls: 'fa fa-refresh' }] }, iconCls: 'fa fa-power-off'