mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
visgraph, fix details
This commit is contained in:
@@ -239,15 +239,12 @@ export default {
|
||||
}
|
||||
let node = data.nodes[0]
|
||||
|
||||
// test
|
||||
//this.countLinksByNode(node)
|
||||
|
||||
let nodeType = splitId(node, 'type')
|
||||
switch (nodeType) {
|
||||
case 'person':
|
||||
let person = this.nodes.filter(n => n.id === node)[0]
|
||||
console.log('@@@@@@ event on selected Node', person.id)
|
||||
if (person.label === null) {
|
||||
if (person.folded === true) {
|
||||
this.$store.commit('unfoldPerson', person)
|
||||
this.forceUpdateComponent()
|
||||
}
|
||||
@@ -268,15 +265,9 @@ export default {
|
||||
break
|
||||
|
||||
default:
|
||||
throw 'this node type is undefined'
|
||||
throw 'event is undefined for this type of node'
|
||||
}
|
||||
})
|
||||
|
||||
/*
|
||||
window.network.on('selectEdge', (data) => {
|
||||
console.log('######## event onSelectEdge ########', data)
|
||||
})
|
||||
*/
|
||||
},
|
||||
forceUpdateComponent() {
|
||||
//console.log('!! forceUpdateComponent !!')
|
||||
|
Reference in New Issue
Block a user