ui: show multiple domains as links in list view (#11536)

* ui: show multiple domains as links in list view

Currently, when resources are linked to multiple domains and they are
shown in the list view, they are not clickable. This PR fixes it.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

---------

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2025-09-03 18:35:06 +05:30 committed by GitHub
parent f24b1757a0
commit 25f1d20340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,7 +365,14 @@
<resource-label :resourceType="record.resourcetype" :resourceId="record.resourceid" :resourceName="record.resourcename" />
</template>
<template v-if="column.key === 'domain'">
<router-link v-if="record.domainid && !record.domainid.toString().includes(',') && $store.getters.userInfo.roletype !== 'User'" :to="{ path: '/domain/' + record.domainid, query: { tab: 'details' } }">{{ text }}</router-link>
<span v-if="record.domainid && $store.getters.userInfo.roletype !== 'User'">
<template v-for="(id, idx) in record.domainid.split(',')" :key="id">
<router-link :to="{ path: '/domain/' + id, query: { tab: 'details' } }">
{{ record.domain.split(',')[idx] || id }}
</router-link>
<span v-if="idx < record.domainid.split(',').length - 1">, </span>
</template>
</span>
<span v-else>{{ text }}</span>
</template>
<template v-if="column.key === 'domainpath'">