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

This commit is contained in:
Jessica Wang 2013-08-22 14:00:29 -07:00
parent 3f4ef406cf
commit ecccb88aa9
1 changed files with 8 additions and 1 deletions

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',