Skip to content

Commit 81cdf3c

Browse files
hsato03Henrique Sato
and
Henrique Sato
authored
Fix instance & backup resource table columns (#9147)
Co-authored-by: Henrique Sato <[email protected]>
1 parent b29391c commit 81cdf3c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Diff for: ui/src/components/view/ListResourceTable.vue

+10-11
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,20 @@
4141
<template v-if="column.key === col">
4242
<router-link :set="routerlink = routerlinks(record)" :to="{ path: routerlink[col] }" >{{ text }}</router-link>
4343
</template>
44-
</div>
4544

46-
<template v-if="column.key === 'state'">
47-
<status :text="text ? text : ''" />{{ text }}
48-
</template>
45+
<template v-else-if="['state', 'status'].includes(column.key)">
46+
<status :text="text ? text : ''" />{{ text }}
47+
</template>
4948

50-
<template v-if="column.key === 'status'">
51-
<status :text="text ? text : ''" />{{ text }}
52-
</template>
53-
</template>
49+
<template v-else-if="column.key === 'created'">
50+
{{ $toLocaleDate(text) }}
51+
</template>
5452

55-
<template v-slot:created="{ item }">
56-
{{ $toLocaleDate(item) }}
53+
<template v-else>
54+
{{ text }}
55+
</template>
56+
</div>
5757
</template>
58-
5958
</a-table>
6059

6160
<div v-if="!defaultPagination" style="display: block; text-align: right; margin-top: 10px;">

0 commit comments

Comments
 (0)