add text_rebond to NodeViewFooter & style popovers
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
onOpen (node) {
|
||||
if (node.parents) {
|
||||
if (node.parents && node.parents.length) {
|
||||
this.$emit('open-node', { parentId: node.parents[0].id, childId: node.id })
|
||||
} else {
|
||||
this.$emit('open-node', { parentId: node.id })
|
||||
|
||||
@@ -109,7 +109,7 @@ export default {
|
||||
trim,
|
||||
|
||||
onNodeClick (node) {
|
||||
if (node.parents) {
|
||||
if (node.parents && node.parents.length) {
|
||||
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