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

This commit is contained in:
Wei Zhou 2023-11-03 10:01:12 +01:00 committed by GitHub
parent 1e133d05c7
commit e6f048bc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>