visgraph: refactor store excludedNode action

This commit is contained in:
2021-11-05 12:17:39 +01:00
parent 9a00e13532
commit 0f8ca77105
2 changed files with 33 additions and 54 deletions

View File

@@ -289,12 +289,12 @@ export default {
addLayer(id) {
//console.log('+ addLayer', id)
this.checkedLayers.push(id)
this.$store.dispatch('removeExcludedNode', id)
this.$store.dispatch('excludedNode', ['remove', id])
},
removeLayer(id) {
//console.log('- removeLayer', id)
this.checkedLayers = this.checkedLayers.filter(i => i !== id)
this.$store.dispatch('addExcludedNode', id)
this.$store.dispatch('excludedNode', ['add', id])
},
addRelationshipModal(edgeData) {