Skip to content
Snippets Groups Projects
Commit f478ff9d authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Reload entity links when switching elements

parent 3f551fe8
No related branches found
No related tags found
1 merge request!1289Reload entity links when switching elements
......@@ -44,9 +44,9 @@ export default {
components: {
DropdownContent
},
mounted () {
this.$store.dispatch('entity/listLinks', { id: this.elementId })
},
data: () => ({
ENTITY_TYPES
}),
computed: {
...mapState('entity', ['links']),
allLinks () {
......@@ -54,9 +54,14 @@ export default {
return null
}
},
data: () => ({
ENTITY_TYPES
})
watch: {
elementId: {
immediate: true,
handler (id) {
this.$store.dispatch('entity/listLinks', { id })
}
}
}
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment