|
@@ -67,7 +67,7 @@
|
|
|
<dot-button
|
|
|
:variant="link.variant"
|
|
|
class="mr-2"
|
|
|
- active
|
|
|
+ active hovered
|
|
|
>
|
|
|
{{ $t('variants.' + link.variant) }}
|
|
|
</dot-button>
|
|
@@ -173,7 +173,13 @@ export default {
|
|
|
if (this.mode === 'view' && this.node.notes) {
|
|
|
// Query partial data for linked nodes in notes
|
|
|
const ids = this.node.notes.filter(note => (note.links)).reduce((ids, note) => {
|
|
|
- return [...ids, ...note.links.map(link => link.id)]
|
|
|
+ note.links.forEach((link) => {
|
|
|
+ ids.push(link.id)
|
|
|
+ if (link.parents && link.parents.length) {
|
|
|
+ ids.push(link.parents[0].id)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return ids
|
|
|
}, [])
|
|
|
this.$store.dispatch('GET_NODES', { ids, dataLevel: 'initial' })
|
|
|
}
|