[pve-devel] applied: [PATCH manager] ui: lxc: switch reboot and stop button to match VMs

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Nov 25 06:41:33 CET 2019


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/lxc/Config.js | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

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'
-- 
2.20.1





More information about the pve-devel mailing list