This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.18 by this push:
new e6f048bc2e8 CKS: fix wrong format of cluster size on UI (#8182)
e6f048bc2e8 is described below
commit e6f048bc2e830f43ef925dcec0374babfa410afd
Author: Wei Zhou <[email protected]>
AuthorDate: Fri Nov 3 10:01:12 2023 +0100
CKS: fix wrong format of cluster size on UI (#8182)
---
ui/src/components/view/ListView.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ui/src/components/view/ListView.vue
b/ui/src/components/view/ListView.vue
index abb62b345bc..286d9d16d2a 100644
--- a/ui/src/components/view/ListView.vue
+++ b/ui/src/components/view/ListView.vue
@@ -194,7 +194,10 @@
<router-link :to="{ path: '/volume/' + record.volumeid }">{{ text
}}</router-link>
</template>
<template #size="{ text }">
- <span v-if="text">
+ <span v-if="text && $route.path === '/kubernetes'">
+ {{ text }}
+ </span>
+ <span v-else-if="text">
{{ parseFloat(parseFloat(text) / 1024.0 / 1024.0 / 1024.0).toFixed(2)
}} GiB
</span>
</template>