Updated Branches: refs/heads/4.2 2ebcfdb73 -> c5e565289
CLOUDSTACK-3888: UI > service offerings > compute offerings > add new field "Planner Mode". Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c5e56528 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c5e56528 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c5e56528 Branch: refs/heads/4.2 Commit: c5e565289fd94023f0de505557786d1799b4fc7b Parents: 2ebcfdb Author: Jessica Wang <[email protected]> Authored: Tue Oct 8 11:46:39 2013 -0700 Committer: Jessica Wang <[email protected]> Committed: Tue Oct 8 11:48:02 2013 -0700 ---------------------------------------------------------------------- ui/scripts/configuration.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c5e56528/ui/scripts/configuration.js ---------------------------------------------------------------------- diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index f9c2498..c2e550d 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -530,7 +530,10 @@ }, deploymentplanner: { label: 'Deployment Planner' - }, + }, + plannerMode: { + label: 'Planner Mode' + }, tags: { label: 'label.storage.tags' }, @@ -557,6 +560,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
