1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

M #~: Fix group quotas on cloud view (#141)

This commit is contained in:
Sergio Betanzos 2020-07-31 12:34:48 +02:00 committed by GitHub
parent 50631291c2
commit 9525d69999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -572,9 +572,9 @@ define(function(require) {
if (group && group.VM_QUOTA && !$.isEmptyObject(group.VM_QUOTA)){
var default_group_quotas = QuotaDefaults.default_quotas(group.DEFAULT_GROUP_QUOTAS);
var vms = QuotaWidgets.quotaInfo(
group.VM_QUOTA.VM.VMS_USED,
group.VM_QUOTA.VM.VMS,
default_group_quotas.VM_QUOTA.VM.VMS);
group.VM_QUOTA.VM.RUNNING_VMS_USED,
group.VM_QUOTA.VM.RUNNING_VMS,
default_group_quotas.VM_QUOTA.VM.VMS);
$("#provision_dashboard_group_rvms_percentage").html(vms["percentage"]);
$("#provision_dashboard_group_rvms_str").html(vms["str"]);
$("#provision_dashboard_group_rvms_meter").val(vms["percentage"]);