CKS: fix wrong format of cluster size on UI (#8182)

(cherry picked from commit e6f048bc2e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Wei Zhou 2023-11-03 10:01:12 +01:00 committed by Rohit Yadav
parent 7260204447
commit c32d2fa990
1 changed files with 4 additions and 1 deletions

View File

@ -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>