Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ui/src/views/iam/DomainView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
:loading="loading"
:tabs="$route.meta.tabs" />
<tree-view
v-else
:key="treeViewKey"
:treeData="treeData"
:treeSelected="treeSelected"
Expand Down Expand Up @@ -140,6 +141,15 @@ export default {
}
})
},
watch: {
'$route' (to, from) {
// When the route changes from /domain/:id to /domain or vice versa, the component is not destroyed and created again
// So, we need to watch the route params to fetch the data again to update the component
if (to.path.startsWith('/domain') && from.params.id !== to.params.id) {
this.fetchData()
}
}
},
provide () {
return {
parentCloseAction: this.closeAction,
Expand Down
Loading