1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: Fix quotas widget in cloud & user views (#137)

(cherry picked from commit bea87272752b12e9a50c33f21f7d3c6f8a80f3bb)
This commit is contained in:
Sergio Betanzos 2020-07-30 13:20:53 +02:00 committed by Tino Vazquez
parent 14d0f26bea
commit 72dc61013d
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE
2 changed files with 6 additions and 6 deletions

View File

@ -152,9 +152,9 @@ define(function(require) {
var default_user_quotas = QuotaDefaults.default_quotas(user.DEFAULT_USER_QUOTAS);
var vms = QuotaWidgets.quotaInfo(
user.VM_QUOTA.VM.VMS_USED,
user.VM_QUOTA.VM.VMS,
default_user_quotas.VM_QUOTA.VM.VMS);
user.VM_QUOTA.VM.RUNNING_VMS_USED,
user.VM_QUOTA.VM.VMS,
default_user_quotas.VM_QUOTA.VM.VMS);
$("#"+TAB_ID+" #provision_dashboard_rvms_percentage").html(vms["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_rvms_str").html(vms["str"]);

View File

@ -460,9 +460,9 @@ define(function(require) {
default_user_quotas.VM_QUOTA.VM.RUNNING_VMS
){
var vms = QuotaWidgets.quotaInfo(
user.VM_QUOTA.VM.VMS_USED,
user.VM_QUOTA.VM.RUNNING_VMS,
default_user_quotas.VM_QUOTA.VM.RUNNING_VMS);
user.VM_QUOTA.VM.RUNNING_VMS_USED,
user.VM_QUOTA.VM.RUNNING_VMS,
default_user_quotas.VM_QUOTA.VM.RUNNING_VMS);
$("#provision_dashboard_rvms_percentage").html(vms["percentage"]);
$("#provision_dashboard_rvms_str").html(vms["str"]);
$("#provision_dashboard_rvms_meter").val(vms["percentage"]);