UI: Move templates creation date to the Zones tab (#10709)

* UI: Move templates creation date to the Zones tab

* Extend changes to ISOs
This commit is contained in:
Nicolas Vazquez 2025-04-17 04:54:11 -03:00 committed by GitHub
parent 53d3d19606
commit 8db248e4b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View File

@ -629,7 +629,7 @@
<span v-else>{{ resource.podname || resource.pod || resource.podid }}</span>
</div>
</div>
<div class="resource-detail-item" v-if="resource.zoneid">
<div class="resource-detail-item" v-if="resource.zoneid && !['template', 'iso'].includes($route.path.split('/')[1])">
<div class="resource-detail-item__label">{{ $t('label.zone') }}</div>
<div class="resource-detail-item__details">
<span v-if="images.zone">
@ -700,7 +700,7 @@
<span v-else>{{ resource.managementserver || resource.managementserverid }}</span>
</div>
</div>
<div class="resource-detail-item" v-if="resource.created">
<div class="resource-detail-item" v-if="resource.created && !['template', 'iso'].includes($route.path.split('/')[1])">
<div class="resource-detail-item__label">{{ $t('label.created') }}</div>
<div class="resource-detail-item__details">
<calendar-outlined />{{ $toLocaleDate(resource.created) }}

View File

@ -48,6 +48,9 @@
<span v-if="record.isready">{{ $t('label.yes') }}</span>
<span v-else>{{ $t('label.no') }}</span>
</template>
<template v-else-if="column.key === 'created'">
<span v-if="record.created">{{ $toLocaleDate(record.created) }}</span>
</template>
<template v-if="column.key === 'actions'">
<span style="margin-right: 5px">
<tooltip-button
@ -262,6 +265,11 @@ export default {
title: this.$t('label.zonename'),
dataIndex: 'zonename'
},
{
key: 'created',
title: this.$t('label.created'),
dataIndex: 'created'
},
{
title: this.$t('label.status'),
dataIndex: 'status'

View File

@ -48,6 +48,9 @@
<span v-if="record.isready">{{ $t('label.yes') }}</span>
<span v-else>{{ $t('label.no') }}</span>
</template>
<template v-else-if="column.key === 'created'">
<span v-if="record.created">{{ $toLocaleDate(record.created) }}</span>
</template>
<template v-if="column.key === 'actions'">
<tooltip-button
style="margin-right: 5px"
@ -308,6 +311,11 @@ export default {
title: this.$t('label.zonename'),
dataIndex: 'zonename'
},
{
key: 'created',
title: this.$t('label.created'),
dataIndex: 'created'
},
{
title: this.$t('label.status'),
dataIndex: 'status'