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) {
|
addRelationshipModal(edgeData) {
|
||||||
//console.log('==- addRelationshipModal', edgeData)
|
//console.log('==- addRelationshipModal', edgeData)
|
||||||
this.modal = {
|
this.modal = {
|
||||||
data: { from: edgeData.from, to: edgeData.to },
|
data: { from: edgeData.from, to: edgeData.to, reverse: false },
|
||||||
action: 'create',
|
action: 'create',
|
||||||
showModal: true,
|
showModal: true,
|
||||||
title: 'visgraph.add_relationship_link',
|
title: 'visgraph.add_relationship_link',
|
||||||
@ -414,6 +414,7 @@ export default {
|
|||||||
this.$store.commit('removeLink', this.modal.data.id)
|
this.$store.commit('removeLink', this.modal.data.id)
|
||||||
this.modal.showModal = false
|
this.modal.showModal = false
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
|
this.forceUpdateComponent()
|
||||||
},
|
},
|
||||||
submitRelationship() {
|
submitRelationship() {
|
||||||
console.log('submitRelationship', this.modal.action)
|
console.log('submitRelationship', this.modal.action)
|
||||||
@ -426,6 +427,7 @@ export default {
|
|||||||
this.$store.dispatch('addLinkFromRelationship', relationship)
|
this.$store.dispatch('addLinkFromRelationship', relationship)
|
||||||
this.modal.showModal = false
|
this.modal.showModal = false
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
|
this.forceUpdateComponent()
|
||||||
resolve()
|
resolve()
|
||||||
}))
|
}))
|
||||||
.catch()
|
.catch()
|
||||||
@ -437,6 +439,7 @@ export default {
|
|||||||
this.$store.commit('updateLink', relationship)
|
this.$store.commit('updateLink', relationship)
|
||||||
this.modal.showModal = false
|
this.modal.showModal = false
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
|
this.forceUpdateComponent()
|
||||||
resolve()
|
resolve()
|
||||||
}))
|
}))
|
||||||
.catch()
|
.catch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user