mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
visgraph: refresh after post/patch/delete request, fix missing key in POST body parameter
This commit is contained in:
parent
4f56bb2464
commit
1a04973072
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user