improve NodeView components and style

This commit is contained in:
axolotle
2021-06-24 16:13:31 +02:00
parent f4d81dffcf
commit a25123f4f9
13 changed files with 54 additions and 71 deletions
+2 -5
View File
@@ -37,6 +37,7 @@
</template>
<script>
import { getRelation } from '@/store/utils'
import { NodeViewTitle } from '@/components/nodes'
@@ -74,11 +75,7 @@ export default {
onFootnoteLinkClick (node, popoverBtnId) {
this.$root.$emit('bv::hide::popover', popoverBtnId)
if (node.parents && node.parents.length) {
this.$parent.$emit('open-node', { parentId: node.parents[0].id, childId: node.id })
} else {
this.$parent.$emit('open-node', { parentId: node.id })
}
this.$parent.$emit('open-node', getRelation(node))
}
},