CLOUDSTACK-4102: UI > instances page > detailView > change service offering action > display different description vm's state and vm's hypervisor.

(cherry picked from commit d9f5ee8a2e)

Signed-off-by: animesh <animesh@apache.org>
This commit is contained in:
Jessica Wang 2013-08-22 14:00:29 -07:00 committed by animesh
parent 111f575476
commit 5fd8aa804a

View File

@ -1278,7 +1278,14 @@
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') {
description = 'Please read the dynamic scaling section in the admin guide before scaling up.';
}
return description;
},
fields: {
serviceOffering: {
label: 'label.compute.offering',