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

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

This commit is contained in:
Sergio Betanzos 2020-07-30 13:20:53 +02:00 committed by GitHub
parent b93351cfaf
commit bea8727275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"]);