Commit 37573e1f authored by Dan Hunsaker's avatar Dan Hunsaker Committed by Dietmar Maurer

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: 's avatarDan Hunsaker <danhunsaker@gmail.com>
parent 5b613406
......@@ -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() {
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment