Skip to content

Commit 8e1786f

Browse files
committed
ui: fix guestos userdefined
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent d7d970d commit 8e1786f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ui/src/components/view/ListView.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,15 @@
228228
</span>
229229
<span v-else>{{ text }}</span>
230230
</template>
231+
<template v-if="column.key === 'oscategoryname'">
232+
<span v-if="('listOsCategories' in $store.getters.apis) && record.oscategoryid">
233+
<router-link :to="{ path: '/guestoscategory/' + record.oscategoryid }">{{ text }}</router-link>
234+
</span>
235+
<span v-else>{{ text }}</span>
236+
</template>
237+
<template v-if="column.key === 'isuserdefined'">
238+
<span>{{ text ? $t('label.yes') : $t('label.no') }}</span>
239+
</template>
231240
<template v-if="column.key === 'state'">
232241
<status v-if="$route.path.startsWith('/host')" :text="getHostState(record)" displayText />
233242
<status v-else :text="text ? text : ''" displayText :styles="{ 'min-width': '80px' }" />

0 commit comments

Comments
 (0)