mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 10:49:51 +00:00
disable suspend/resume on containers
since this feature is not really working at the moment, disable it in the gui we can reenable it when it works reliably Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
546e0c5c22
commit
1b7117805b
@ -65,29 +65,29 @@ Ext.define('PVE.lxc.CmdMenu', {
|
||||
win.show();
|
||||
}
|
||||
},
|
||||
{
|
||||
text: gettext('Suspend'),
|
||||
iconCls: 'fa fa-fw fa-pause',
|
||||
disabled: stopped || suspended,
|
||||
handler: function() {
|
||||
var msg = PVE.Utils.format_task_description('vzsuspend', vmid);
|
||||
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||
if (btn !== 'yes') {
|
||||
return;
|
||||
}
|
||||
|
||||
vm_command('suspend');
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
text: gettext('Resume'),
|
||||
iconCls: 'fa fa-fw fa-play',
|
||||
disabled: !suspended,
|
||||
handler: function() {
|
||||
vm_command('resume');
|
||||
}
|
||||
},
|
||||
// {
|
||||
// text: gettext('Suspend'),
|
||||
// iconCls: 'fa fa-fw fa-pause',
|
||||
// disabled: stopped || suspended,
|
||||
// handler: function() {
|
||||
// var msg = PVE.Utils.format_task_description('vzsuspend', vmid);
|
||||
// Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||
// if (btn !== 'yes') {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// vm_command('suspend');
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// text: gettext('Resume'),
|
||||
// iconCls: 'fa fa-fw fa-play',
|
||||
// disabled: !suspended,
|
||||
// handler: function() {
|
||||
// vm_command('resume');
|
||||
// }
|
||||
// },
|
||||
{
|
||||
text: gettext('Shutdown'),
|
||||
iconCls: 'fa fa-fw fa-power-off',
|
||||
|
Loading…
Reference in New Issue
Block a user