fix text rebonds missing data

This commit is contained in:
axolotle
2021-07-29 15:12:26 +02:00
parent 31da2f590f
commit e83df4d921
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
v-for="link in note.links" :key="link.id"
:node="link.type === 'prod' && link.parents && link.parents.length ? link.parents[0] : link"
link
@open-node="onFootnoteLinkClick(link, 'note-' + note.number)"
@open-node="onFootnoteLinkClick(link, `note-${node.id}-${note.number}`)"
>
<dot-button
:variant="link.variant"
+8
View File
@@ -103,6 +103,14 @@ export default {
onOpenSelf () {
this.$parent.$emit('open-node', getRelation(this.node))
}
},
created () {
if (this.mode === 'view' && this.node.siblings) {
// Query partial data for sibling nodes
const ids = this.node.siblings.map(sibling => sibling.id)
this.$store.dispatch('GET_NODES', { ids, dataLevel: 'initial' })
}
}
}
</script>
+1 -1
View File
@@ -29,7 +29,7 @@
</div>
<node-view-title
:node="node.type === 'ref' ? node : node.parents[0]"
link edition block
edition block
tag="div"
/>
</b-dropdown-item-button>