Skip to content

Commit ecccb88

Browse files
author
Jessica Wang
committed
CLOUDSTACK-4102: UI > instances page > detailView > change service offering action > display different description vm's state and vm's hypervisor.
1 parent 3f4ef40 commit ecccb88

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ui/scripts/instances.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,14 @@
12781278
label: 'label.change.service.offering',
12791279
createForm: {
12801280
title: 'label.change.service.offering',
1281-
desc: 'Please read the dynamic scaling section in the admin guide before scaling up.',
1281+
desc: function(args) {
1282+
var description = '';
1283+
var vmObj = args.jsonObj;
1284+
if (vmObj.state == 'Running' && vmObj.hypervisor == 'VMware') {
1285+
description = 'Please read the dynamic scaling section in the admin guide before scaling up.';
1286+
}
1287+
return description;
1288+
},
12821289
fields: {
12831290
serviceOffering: {
12841291
label: 'label.compute.offering',

0 commit comments

Comments
 (0)