|
@@ -191,11 +191,12 @@ export default {
|
|
// BASIC HANDLERS
|
|
// BASIC HANDLERS
|
|
|
|
|
|
onNodeClick (nodeData) {
|
|
onNodeClick (nodeData) {
|
|
|
|
+ // FIXME CURRENT PROBLEM AS API TREATING TEXTPRODs as TEXTREFs (no `parents:`)
|
|
const { id, parents } = nodeData
|
|
const { id, parents } = nodeData
|
|
if (parents) {
|
|
if (parents) {
|
|
- this.$emit('open', parents[0].id, id)
|
|
|
|
|
|
+ this.$emit('open-node', parents[0].id, id)
|
|
} else {
|
|
} else {
|
|
- this.$emit('open', id)
|
|
|
|
|
|
+ this.$emit('open-node', id)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|