mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
f24b1757a0
commit
25f1d20340
@ -365,7 +365,14 @@
|
|||||||
<resource-label :resourceType="record.resourcetype" :resourceId="record.resourceid" :resourceName="record.resourcename" />
|
<resource-label :resourceType="record.resourcetype" :resourceId="record.resourceid" :resourceName="record.resourcename" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'domain'">
|
<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>
|
<span v-else>{{ text }}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'domainpath'">
|
<template v-if="column.key === 'domainpath'">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user