fix text rebonds missing data
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
v-for="link in note.links" :key="link.id"
|
v-for="link in note.links" :key="link.id"
|
||||||
:node="link.type === 'prod' && link.parents && link.parents.length ? link.parents[0] : link"
|
:node="link.type === 'prod' && link.parents && link.parents.length ? link.parents[0] : link"
|
||||||
link
|
link
|
||||||
@open-node="onFootnoteLinkClick(link, 'note-' + note.number)"
|
@open-node="onFootnoteLinkClick(link, `note-${node.id}-${note.number}`)"
|
||||||
>
|
>
|
||||||
<dot-button
|
<dot-button
|
||||||
:variant="link.variant"
|
:variant="link.variant"
|
||||||
|
|||||||
@@ -103,6 +103,14 @@ export default {
|
|||||||
onOpenSelf () {
|
onOpenSelf () {
|
||||||
this.$parent.$emit('open-node', getRelation(this.node))
|
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>
|
</script>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<node-view-title
|
<node-view-title
|
||||||
:node="node.type === 'ref' ? node : node.parents[0]"
|
:node="node.type === 'ref' ? node : node.parents[0]"
|
||||||
link edition block
|
edition block
|
||||||
tag="div"
|
tag="div"
|
||||||
/>
|
/>
|
||||||
</b-dropdown-item-button>
|
</b-dropdown-item-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user