CLOUDSTACK-8039: UI > Infrastructure > router, systemvm > detailView > hide ChangeServiceOffering action when vm's hypervisor is XenServer and vm's status is Running.

This commit is contained in:
Jessica Wang 2014-12-05 14:40:21 -08:00
parent 3ea8a1187a
commit 7d7df0245b

View File

@ -20589,8 +20589,8 @@
if (jsonObj.state == 'Running') {
allowedActions.push("stop");
//when router is Running, only XenServer, VMware support scaleUp(change service offering)
if (jsonObj.hypervisor == 'XenServer' || jsonObj.hypervisor == "VMware") {
//when router is Running, only VMware support scaleUp(change service offering)
if (jsonObj.hypervisor == "VMware") {
allowedActions.push("scaleUp");
}
@ -20635,8 +20635,8 @@
allowedActions.push("restart");
allowedActions.push("remove");
//when systemvm is Running, only XenServer, VMware support scaleUp(change service offering)
if (jsonObj.hypervisor == 'XenServer' ||jsonObj.hypervisor == "VMware") {
//when systemvm is Running, only VMware support scaleUp(change service offering)
if (jsonObj.hypervisor == "VMware") {
allowedActions.push("scaleUp");
}