make node-views emit instead of calling the store

This commit is contained in:
axolotle
2021-06-10 17:51:28 +02:00
parent 346a3ffdfe
commit 95d4b6f66f
6 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ export default {
methods: {
toCommaList,
onOpen (nodeId) {
this.$store.dispatch('OPEN_NODE', [nodeId])
onOpen (siblingId) {
this.$parent.$emit('open-node', siblingId)
}
}
}