We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b8d58 commit d69a9b3Copy full SHA for d69a9b3
ui/src/views/iam/DomainView.vue
@@ -56,6 +56,7 @@
56
:loading="loading"
57
:tabs="$route.meta.tabs" />
58
<tree-view
59
+ v-else
60
:key="treeViewKey"
61
:treeData="treeData"
62
:treeSelected="treeSelected"
@@ -140,6 +141,15 @@ export default {
140
141
}
142
})
143
},
144
+ watch: {
145
+ '$route' (to, from) {
146
+ // When the route changes from /domain/:id to /domain or vice versa, the component is not destroyed and created again
147
+ // So, we need to watch the route params to fetch the data again to update the component
148
+ if (to.path.startsWith('/domain') && from.params.id !== to.params.id) {
149
+ this.fetchData()
150
+ }
151
152
+ },
153
provide () {
154
return {
155
parentCloseAction: this.closeAction,
0 commit comments