mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix instance & backup resource table columns (#9147)
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
This commit is contained in:
parent
7977d1475e
commit
ca66b76cb9
@ -41,21 +41,20 @@
|
|||||||
<template v-if="column.key === col">
|
<template v-if="column.key === col">
|
||||||
<router-link :set="routerlink = routerlinks(record)" :to="{ path: routerlink[col] }" >{{ text }}</router-link>
|
<router-link :set="routerlink = routerlinks(record)" :to="{ path: routerlink[col] }" >{{ text }}</router-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-else-if="['state', 'status'].includes(column.key)">
|
||||||
|
<status :text="text ? text : ''" />{{ text }}
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-else-if="column.key === 'created'">
|
||||||
|
{{ $toLocaleDate(text) }}
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-else>
|
||||||
|
{{ text }}
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-if="column.key === 'state'">
|
|
||||||
<status :text="text ? text : ''" />{{ text }}
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<status :text="text ? text : ''" />{{ text }}
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:created="{ item }">
|
|
||||||
{{ $toLocaleDate(item) }}
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
|
|
||||||
<div v-if="!defaultPagination" style="display: block; text-align: right; margin-top: 10px;">
|
<div v-if="!defaultPagination" style="display: block; text-align: right; margin-top: 10px;">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user