Skip to content
Snippets Groups Projects
Commit 78e16f6c authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'fix-links-element-switch' into 'master'

Reload entity links when switching elements

Closes #1008

See merge request !1289
parents 3f551fe8 f478ff9d
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