Skip to content

Commit e6f048b

Browse files
CKS: fix wrong format of cluster size on UI (#8182)
1 parent 1e133d0 commit e6f048b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/components/view/ListView.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@
194194
<router-link :to="{ path: '/volume/' + record.volumeid }">{{ text }}</router-link>
195195
</template>
196196
<template #size="{ text }">
197-
<span v-if="text">
197+
<span v-if="text && $route.path === '/kubernetes'">
198+
{{ text }}
199+
</span>
200+
<span v-else-if="text">
198201
{{ parseFloat(parseFloat(text) / 1024.0 / 1024.0 / 1024.0).toFixed(2) }} GiB
199202
</span>
200203
</template>

0 commit comments

Comments
 (0)