cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.2 to c5e5652
Date Tue, 08 Oct 2013 18:48:12 GMT
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 <jessicawang@apache.org>
Authored: Tue Oct 8 11:46:39 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
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


Mime
View raw message