mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #4118: Fix cost for services
(cherry picked from commit bdc3a4978e94d162d1362ae0b021c177930a07b1)
This commit is contained in:
parent
b5364b3a69
commit
36de6b8078
@ -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…
x
Reference in New Issue
Block a user