]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: lxc: switch reboot and stop button to match VMs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Nov 2019 05:40:50 +0000 (06:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Nov 2019 05:40:50 +0000 (06:40 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/lxc/Config.js

index 60c440bb2f46f684bea8217f8a6ee03ba3a6c7ec..a250b7cebc41866e1aacd0b45bd309dcd4ebef01 100644 (file)
@@ -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'