diff --git a/src/sunstone/public/js/plugins/provision-tab.js b/src/sunstone/public/js/plugins/provision-tab.js index cea491b26d..53cb244617 100644 --- a/src/sunstone/public/js/plugins/provision-tab.js +++ b/src/sunstone/public/js/plugins/provision-tab.js @@ -2442,13 +2442,7 @@ $(document).ready(function(){ // as it is returned by the individual info call var q = provision_quotas_list[data.ID]; - var quotas_html = '
  • '+ - ''+ - ''+ - ''+ - '
  • '+ - '
  • '+tr("No quotas defined")+'
  • '; - + var quotas_html; if (q != undefined){ var quota = q.QUOTAS; @@ -2481,37 +2475,31 @@ $(document).ready(function(){ } } + if (quotas_html == undefined) { + quotas_html = ""; + quotas_html += '
  • '+tr("Running VMs")+'
  • '; + quotas_html += '
  • '; + quotas_html += quotaBar(0,0,null); + quotas_html += '
  • '; + + quotas_html += '
  • '+tr("Memory")+'
  • '; + quotas_html += '
  • '; + quotas_html += quotaBarMB(0,0,null); + quotas_html += '
  • '; + + quotas_html += '
  • '+tr("CPU")+'
  • '; + quotas_html += '
  • '; + quotas_html += quotaBarFloat(0,0,null); + quotas_html += '
  • '; + } + $("#provision_users_ul").append('
  • '+ ''+ '
  • ');