Skip to content

Commit 3de6635

Browse files
shwstpprdhslove
authored andcommitted
ui: allow viewing hosts from management server connected agents (apache#12149)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent dbcbfe0 commit 3de6635

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ui/src/components/view/ListView.vue

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

0 commit comments

Comments
 (0)