From 3f1aba894f0e57ca45ce34857eb8d13d291a831b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 8 Oct 2013 11:46:39 -0700 Subject: [PATCH] CLOUDSTACK-3888: UI > service offerings > compute offerings > add new field "Planner Mode". --- ui/scripts/configuration.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 5eff5b4d4a1..e76caaf1b24 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -529,7 +529,10 @@ }, deploymentplanner: { label: 'Deployment Planner' - }, + }, + plannerMode: { + label: 'Planner Mode' + }, tags: { label: 'label.storage.tags' }, @@ -556,6 +559,13 @@ async: true, success: function(json) { var item = json.listserviceofferingsresponse.serviceoffering[0]; + + if (item.deploymentplanner != null && item.serviceofferingdetails != null) { + if (item.deploymentplanner == 'ImplicitDedicationPlanner' && item.serviceofferingdetails.ImplicitDedicationMode != null) { + item.plannerMode = item.serviceofferingdetails.ImplicitDedicationMode; + } + } + args.response.success({ actionFitler: serviceOfferingActionfilter, data: item