You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2024/06/17 08:34:52 UTC

(cloudstack) branch 4.19 updated: fix: domain limits tab ui is now able to present 0 to the user (#9166)

This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 96288ecf1fa fix: domain limits tab ui is now able to present 0 to the user (#9166)
96288ecf1fa is described below

commit 96288ecf1fab1aab4a87001040b6804f05fdc710
Author: Klaus de Freitas Dornsbach <kl...@gmail.com>
AuthorDate: Mon Jun 17 05:34:46 2024 -0300

    fix: domain limits tab ui is now able to present 0 to the user (#9166)
    
    Co-authored-by: klaus.freitas.scclouds <kl...@scclouds.com.br>
    Co-authored-by: Bryan Lima <42...@users.noreply.github.com>
---
 ui/src/components/view/ResourceLimitTab.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/components/view/ResourceLimitTab.vue b/ui/src/components/view/ResourceLimitTab.vue
index 0c09a14fcd5..875d2cc3b40 100644
--- a/ui/src/components/view/ResourceLimitTab.vue
+++ b/ui/src/components/view/ResourceLimitTab.vue
@@ -112,7 +112,7 @@ export default {
         this.formLoading = true
         this.dataResource = await this.listResourceLimits(params)
         this.dataResource.forEach(item => {
-          form[item.resourcetype] = item.max || -1
+          form[item.resourcetype] = item.max == null ? -1 : item.max
         })
         this.form = form
         this.formRef.value.resetFields()