From 1a049730728f2b7b03099ab03d039501e591bd9c Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 17 Nov 2021 12:18:34 +0100 Subject: [PATCH] visgraph: refresh after post/patch/delete request, fix missing key in POST body parameter --- .../Resources/public/vuejs/VisGraph/App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue index 60db92628..8696041f9 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue @@ -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()