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 7c951a2fa9
commit 4f748e6e30
1 changed files with 4 additions and 4 deletions

View File

@ -20567,8 +20567,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");
}
@ -20613,8 +20613,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");
}