mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-13 13:17:39 +03:00
Bug #4118: Fix cost for services
This commit is contained in:
parent
9f5995f53f
commit
bdc3a4978e
@ -247,7 +247,7 @@ define(function(require) {
|
||||
var capacity = template_json.VMTEMPLATE.TEMPLATE;
|
||||
var cost = 0;
|
||||
if (capacity.CPU_COST || capacity.MEMORY_COST && Config.isFeatureEnabled("showback")) {
|
||||
$(".provision_create_service_cost_div").show();
|
||||
$(".provision_create_service_cost_div", context).show();
|
||||
|
||||
if (capacity.CPU && capacity.CPU_COST) {
|
||||
cost += capacity.CPU * capacity.CPU_COST
|
||||
@ -263,7 +263,7 @@ define(function(require) {
|
||||
var cost_value = cost*parseInt(role_template.cardinality);
|
||||
$(".cost_value", context).html(cost_value.toFixed(2));
|
||||
} else {
|
||||
$(".provision_create_service_cost_div").hide();
|
||||
$(".provision_create_service_cost_div", context).hide();
|
||||
}
|
||||
|
||||
if (max_vms > min_vms) {
|
||||
|
Loading…
Reference in New Issue
Block a user