Add suspend/resume options to the mobile web UI menus

With the new mobile interface, we need to implement UI changes in two
places.  This lets us simplify our mobile interface so it isn't cluttered
with options that mobile browsers can't easily handle, usually due to size.
This patch implements Suspend and Resume of VMs and CTs via the mobile
web UI.

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
This commit is contained in:
Dan Hunsaker 2014-10-08 17:02:08 -06:00 committed by Dietmar Maurer
parent 5b61340604
commit 37573e1ffc
2 changed files with 24 additions and 0 deletions

View File

@ -158,6 +158,18 @@ Ext.define('PVE.OpenVzSummary', {
me.vm_command("start", {});
}
},
{
text: gettext('Suspend'),
handler: function() {
me.vm_command("suspend", {});
}
},
{
text: gettext('Resume'),
handler: function() {
me.vm_command("resume", {});
}
},
{
text: gettext('Shutdown'),
handler: function() {

View File

@ -161,6 +161,18 @@ Ext.define('PVE.QemuSummary', {
me.vm_command("start", {});
}
},
{
text: gettext('Suspend'),
handler: function() {
me.vm_command("suspend", {});
}
},
{
text: gettext('Resume'),
handler: function() {
me.vm_command("resume", {});
}
},
{
text: gettext('Shutdown'),
handler: function() {