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(); win.show();
} }
}, },
{ // {
text: gettext('Suspend'), // text: gettext('Suspend'),
iconCls: 'fa fa-fw fa-pause', // iconCls: 'fa fa-fw fa-pause',
disabled: stopped || suspended, // disabled: stopped || suspended,
handler: function() { // handler: function() {
var msg = PVE.Utils.format_task_description('vzsuspend', vmid); // var msg = PVE.Utils.format_task_description('vzsuspend', vmid);
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { // Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
if (btn !== 'yes') { // if (btn !== 'yes') {
return; // return;
} // }
//
vm_command('suspend'); // vm_command('suspend');
}); // });
} // }
}, // },
{ // {
text: gettext('Resume'), // text: gettext('Resume'),
iconCls: 'fa fa-fw fa-play', // iconCls: 'fa fa-fw fa-play',
disabled: !suspended, // disabled: !suspended,
handler: function() { // handler: function() {
vm_command('resume'); // vm_command('resume');
} // }
}, // },
{ {
text: gettext('Shutdown'), text: gettext('Shutdown'),
iconCls: 'fa fa-fw fa-power-off', iconCls: 'fa fa-fw fa-power-off',