fix text rebonds missing data
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user