mirror of https://github.com/apache/cloudstack.git
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:
parent
3f4ef406cf
commit
ecccb88aa9
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue