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

View File

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