mirror of
https://github.com/apache/cloudstack
synced 2026-08-30 00:52:15 +00:00
CLOUDSTACK-4102: UI > Instracture > SystemVM / VirtualRouter > detailView > change service offering action - display different description based on VM's state.
(cherry picked from commit 3b63b22fe4)
Signed-off-by: animesh <animesh@apache.org>
This commit is contained in:
parent
5fd8aa804a
commit
99564b381f
@ -6639,7 +6639,15 @@
|
||||
label: 'label.change.service.offering',
|
||||
createForm: {
|
||||
title: 'label.change.service.offering',
|
||||
desc: 'Please read the dynamic scaling section in the admin guide before scaling up.',
|
||||
desc: function(args) {
|
||||
var description = '';
|
||||
var vmObj = args.jsonObj;
|
||||
//if (vmObj.state == 'Running' && vmObj.hypervisor == 'VMware') { //needs to wait for API fix that will return hypervisor property
|
||||
if (vmObj.state == 'Running') {
|
||||
description = 'Please read the dynamic scaling section in the admin guide before scaling up.';
|
||||
}
|
||||
return description;
|
||||
},
|
||||
fields: {
|
||||
serviceOfferingId: {
|
||||
label: 'label.compute.offering',
|
||||
@ -7606,7 +7614,15 @@
|
||||
label: 'label.change.service.offering',
|
||||
createForm: {
|
||||
title: 'label.change.service.offering',
|
||||
desc: 'Please read the dynamic scaling section in the admin guide before scaling up.',
|
||||
desc: function(args) {
|
||||
var description = '';
|
||||
var vmObj = args.jsonObj;
|
||||
//if (vmObj.state == 'Running' && vmObj.hypervisor == 'VMware') { //needs to wait for API fix that will return hypervisor property
|
||||
if (vmObj.state == 'Running') {
|
||||
description = 'Please read the dynamic scaling section in the admin guide before scaling up.';
|
||||
}
|
||||
return description;
|
||||
},
|
||||
fields: {
|
||||
serviceOfferingId: {
|
||||
label: 'label.compute.offering',
|
||||
@ -8155,7 +8171,15 @@
|
||||
label: 'label.change.service.offering',
|
||||
createForm: {
|
||||
title: 'label.change.service.offering',
|
||||
desc: 'Please read the dynamic scaling section in the admin guide before scaling up.',
|
||||
desc: function(args) {
|
||||
var description = '';
|
||||
var vmObj = args.jsonObj;
|
||||
//if (vmObj.state == 'Running' && vmObj.hypervisor == 'VMware') { //needs to wait for API fix that will return hypervisor property
|
||||
if (vmObj.state == 'Running') {
|
||||
description = 'Please read the dynamic scaling section in the admin guide before scaling up.';
|
||||
}
|
||||
return description;
|
||||
},
|
||||
fields: {
|
||||
serviceOfferingId: {
|
||||
label: 'label.compute.offering',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user