ui: Add link to account role in listview (#6065)

* ui: Add link to account role in listview

* Ensure route exists
This commit is contained in:
David Jumani 2022-03-08 16:41:00 +05:30 committed by GitHub
parent 3b7166ea99
commit 92d831c6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,10 @@
<router-link v-if="$router.resolve('/zone/' + record.zoneid).route.name !== '404'" :to="{ path: '/zone/' + record.zoneid }">{{ text }}</router-link>
<span v-else>{{ text }}</span>
</span>
<span slot="rolename" slot-scope="text, record">
<router-link v-if="record.roleid && $router.resolve('/role/' + record.roleid).route.name !== '404'" :to="{ path: '/role/' + record.roleid }">{{ text }}</router-link>
<span v-else>{{ text }}</span>
</span>
<a slot="readonly" slot-scope="text, record">
<status :text="record.readonly ? 'ReadOnly' : 'ReadWrite'" displayText />
</a>