CLOUDSTACK-3888: UI > service offerings > compute offerings > add new field "Planner Mode".

This commit is contained in:
Jessica Wang 2013-10-08 11:46:39 -07:00
parent 10938612cc
commit 3f1aba894f

View File

@ -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