From ecccb88aa96aa9c44def463a42260dbdcc8e2b4e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 22 Aug 2013 14:00:29 -0700 Subject: [PATCH] CLOUDSTACK-4102: UI > instances page > detailView > change service offering action > display different description vm's state and vm's hypervisor. --- ui/scripts/instances.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index b8ffa2d2fe7..20d3d9a606d 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -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',