|
@@ -14,7 +14,12 @@
|
|
|
</div>
|
|
|
</h4>
|
|
|
|
|
|
- <node-view-child-list v-if="mode === 'view'" :children="node.children" :parent-id="node.id" />
|
|
|
+ <node-view-child-list
|
|
|
+ v-if="mode === 'view'"
|
|
|
+ :children="node.children"
|
|
|
+ :parent-id="node.id"
|
|
|
+ @open-child="$parent.$emit('open-child', $event)"
|
|
|
+ />
|
|
|
<button-close v-if="mode === 'view'" @click="onClose()" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -42,7 +47,7 @@ export default {
|
|
|
toCommaList,
|
|
|
|
|
|
onClose () {
|
|
|
- this.$store.dispatch('CLOSE_NODE', this.node.id)
|
|
|
+ this.$parent.$emit('close-node', this.node.id)
|
|
|
}
|
|
|
}
|
|
|
}
|