ui: ct/vm: add tooltip to hibernate and stop button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -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) {
|
||||
|
@ -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");
|
||||
|
@ -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) {
|
||||
|
@ -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 });
|
||||
|
Reference in New Issue
Block a user