Skip to content

Commit c850143

Browse files
committed
ui: allow viewing hosts from management server connected agents
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 671d8ad commit c850143

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ui/src/components/view/ListView.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,14 @@
865865
<template v-if="['isfeatured'].includes(column.key) && ['guestoscategory'].includes($route.path.split('/')[1])">
866866
{{ record.isfeatured ? $t('label.yes') : $t('label.no') }}
867867
</template>
868+
<template v-if="['agentscount'].includes(column.key)">
869+
<router-link
870+
v-if="['managementserver'].includes($route.path.split('/')[1]) && $router.resolve('/host').matched[0].redirect !== '/exception/404'"
871+
:to="{ path: '/host', query: { managementserverid: record.id } }">
872+
{{ text }}
873+
</router-link>
874+
<span v-else> {{ text }} </span>
875+
</template>
868876
<template v-if="column.key === 'order'">
869877
<div class="shift-btns">
870878
<a-tooltip

0 commit comments

Comments
 (0)