This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 81cdf3cfbfe Fix instance & backup resource table columns (#9147)
81cdf3cfbfe is described below

commit 81cdf3cfbfe17a216a6619a85c26dad7e89971f8
Author: Henrique Sato <[email protected]>
AuthorDate: Fri Jun 7 04:55:54 2024 -0300

    Fix instance & backup resource table columns (#9147)
    
    Co-authored-by: Henrique Sato <[email protected]>
---
 ui/src/components/view/ListResourceTable.vue | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/ui/src/components/view/ListResourceTable.vue 
b/ui/src/components/view/ListResourceTable.vue
index 16c1b388c5d..a7e805b5443 100644
--- a/ui/src/components/view/ListResourceTable.vue
+++ b/ui/src/components/view/ListResourceTable.vue
@@ -41,21 +41,20 @@
           <template v-if="column.key === col">
             <router-link :set="routerlink = routerlinks(record)" :to="{ path: 
routerlink[col] }" >{{ text }}</router-link>
           </template>
-        </div>
 
-        <template v-if="column.key === 'state'">
-          <status :text="text ? text : ''" />{{ text }}
-        </template>
+          <template v-else-if="['state', 'status'].includes(column.key)">
+            <status :text="text ? text : ''" />{{ text }}
+          </template>
 
-        <template v-if="column.key === 'status'">
-          <status :text="text ? text : ''" />{{ text }}
-        </template>
-      </template>
+          <template v-else-if="column.key === 'created'">
+            {{ $toLocaleDate(text) }}
+          </template>
 
-      <template v-slot:created="{ item }">
-        {{ $toLocaleDate(item) }}
+          <template v-else>
+            {{ text }}
+          </template>
+        </div>
       </template>
-
     </a-table>
 
     <div v-if="!defaultPagination" style="display: block; text-align: right; 
margin-top: 10px;">

Reply via email to