mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3888: UI > service offerings > compute offerings > add new field "Planner Mode".
This commit is contained in:
parent
10938612cc
commit
3f1aba894f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue