ui: fix physical network guest traffix type tab (#6096)

Fixes icon
Fixes object change

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2022-03-14 19:12:38 +05:30 committed by GitHub
parent 59f0d558ec
commit d828fd247f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,10 @@
:rowKey="record => record.id"
:pagination="false"
>
<template #name="{ text }">
<resource-icon v-if="item.icon" :image="item.icon.base64image" size="1x" style="margin-right: 5px"/>
<template #name="{ text, record }">
<resource-icon v-if="record.icon" :image="record.icon.base64image" size="1x" style="margin-right: 5px"/>
<apartment-outlined v-else style="margin-right: 5px"/>
<router-link :to="{ path: '/guestnetwork/' + item.id }">
<router-link :to="{ path: '/guestnetwork/' + record.id }">
{{ text }}
</router-link>
</template>
@ -137,7 +137,7 @@ export default {
this.fetchData()
},
watch: {
network (newItem, oldItem) {
resource (newItem, oldItem) {
if (!newItem || !newItem.id) {
return
}