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:
parent
5b61340604
commit
37573e1ffc
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user