visgraph: refresh after post/patch/delete request, fix missing key in POST body parameter

This commit is contained in:
Mathieu Jaumotte 2021-11-17 12:18:34 +01:00
parent 4f56bb2464
commit 1a04973072

View File

@ -356,7 +356,7 @@ export default {
addRelationshipModal(edgeData) {
//console.log('==- addRelationshipModal', edgeData)
this.modal = {
data: { from: edgeData.from, to: edgeData.to },
data: { from: edgeData.from, to: edgeData.to, reverse: false },
action: 'create',
showModal: true,
title: 'visgraph.add_relationship_link',
@ -414,6 +414,7 @@ export default {
this.$store.commit('removeLink', this.modal.data.id)
this.modal.showModal = false
this.resetForm()
this.forceUpdateComponent()
},
submitRelationship() {
console.log('submitRelationship', this.modal.action)
@ -426,6 +427,7 @@ export default {
this.$store.dispatch('addLinkFromRelationship', relationship)
this.modal.showModal = false
this.resetForm()
this.forceUpdateComponent()
resolve()
}))
.catch()
@ -437,6 +439,7 @@ export default {
this.$store.commit('updateLink', relationship)
this.modal.showModal = false
this.resetForm()
this.forceUpdateComponent()
resolve()
}))
.catch()