update node opening/closing
This commit is contained in:
@@ -58,8 +58,11 @@ export default {
|
||||
|
||||
methods: {
|
||||
onOpen (node) {
|
||||
// FIXME ALSO CHECK IF PARENT
|
||||
this.$emit('open-node', node.id)
|
||||
if (node.parents) {
|
||||
this.$emit('open-node', { parentId: node.parents[0].id, childId: node.id })
|
||||
} else {
|
||||
this.$emit('open-node', { parentId: node.id })
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user