]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ct/vm: add tooltip to hibernate and stop button
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 14:21:12 +0000 (15:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 14:21:12 +0000 (15:21 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/lxc/CmdMenu.js
www/manager6/lxc/Config.js
www/manager6/qemu/CmdMenu.js
www/manager6/qemu/Config.js

index 13edcb2e988a35715ceb2c361dcf4376e7ccff62..579b2585690b0809b836f65dc1b9da532cf26b6f 100644 (file)
@@ -100,6 +100,7 @@ Ext.define('PVE.lxc.CmdMenu', {
                text: gettext('Stop'),
                iconCls: 'fa fa-fw fa-stop',
                disabled: stopped,
+               tooltip: Ext.String.format(gettext('Stop {0} immediately'), 'CT'),
                handler: function() {
                    var msg = Proxmox.Utils.format_task_description('vzstop', vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
index 9f219ed49f2c81bf9c6bbc4c26a05593d09aaabc..0f81c1da2f19bae9957e8ba197648ed82e23daa4 100644 (file)
@@ -56,6 +56,7 @@ Ext.define('PVE.lxc.Config', {
            text: gettext('Stop'),
            disabled: !caps.vms['VM.PowerMgmt'],
            confirmMsg: Proxmox.Utils.format_task_description('vzstop', vmid),
+           tooltip: Ext.String.format(gettext('Stop {0} immediately'), 'CT'),
            dangerous: true,
            handler: function() {
                vm_command("stop");
index 3d1c398542f18c59f6985cf4c3407d6658c23155..9ca49983525c9dbc6984fd00a86416585077d2e4 100644 (file)
@@ -83,6 +83,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                iconCls: 'fa fa-fw fa-stop',
                hidden: stopped || suspended,
                disabled: stopped || suspended,
+               tooltip: gettext('Suspend to disk'),
                handler: function() {
                    var msg = Proxmox.Utils.format_task_description('qmsuspend', vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
@@ -120,6 +121,7 @@ Ext.define('PVE.qemu.CmdMenu', {
                text: gettext('Stop'),
                iconCls: 'fa fa-fw fa-stop',
                disabled: stopped,
+               tooltip: Ext.String.format(gettext('Stop {0} immediately'), 'VM'),
                handler: function() {
                    var msg = Proxmox.Utils.format_task_description('qmstop', vmid);
                    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
index 4f8d2bbe1b584e469bd26b50c42b714c1dd6848d..7a84a3f795170292a8b54793a1a3889f29f8b575 100644 (file)
@@ -154,6 +154,7 @@ Ext.define('PVE.qemu.Config', {
                    text: gettext('Hibernate'),
                    disabled: !caps.vms['VM.PowerMgmt'],
                    confirmMsg: Proxmox.Utils.format_task_description('qmsuspend', vmid),
+                   tooltip: gettext('Suspend to disk'),
                    handler: function() {
                        vm_command("suspend", { todisk: 1 });
                    },
@@ -162,6 +163,7 @@ Ext.define('PVE.qemu.Config', {
                    text: gettext('Stop'),
                    disabled: !caps.vms['VM.PowerMgmt'],
                    dangerous: true,
+                   tooltip: Ext.String.format(gettext('Stop {0} immediately'), 'VM'),
                    confirmMsg: Proxmox.Utils.format_task_description('qmstop', vmid),
                    handler: function() {
                        vm_command("stop", { timeout: 30 });