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:
Dominik Csapak 2016-04-07 13:29:26 +02:00 committed by Dietmar Maurer
parent 546e0c5c22
commit 1b7117805b

View File

@ -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',