Skip to content

Commit

Permalink
CKS: fix wrong format of cluster size on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Nov 2, 2023
1 parent 3b11663 commit a46ddf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/view/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a46ddf1

Please sign in to comment.