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
1 changed files with 11 additions and 1 deletions

View File

@ -529,7 +529,10 @@
}, },
deploymentplanner: { deploymentplanner: {
label: 'Deployment Planner' label: 'Deployment Planner'
}, },
plannerMode: {
label: 'Planner Mode'
},
tags: { tags: {
label: 'label.storage.tags' label: 'label.storage.tags'
}, },
@ -556,6 +559,13 @@
async: true, async: true,
success: function(json) { success: function(json) {
var item = json.listserviceofferingsresponse.serviceoffering[0]; 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({ args.response.success({
actionFitler: serviceOfferingActionfilter, actionFitler: serviceOfferingActionfilter,
data: item data: item