From a20eeb6a34a10b304e50b47881fdfecd40f984fa Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 26 Oct 2021 15:15:44 +0200 Subject: [PATCH] vue_visgraph: add a mechanism to force update component cfr. https://medium.com/emblatech/ways-to-force-vue-to-re-render-a-component-df866fbacf47 --- .../Resources/public/vuejs/VisGraph/App.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue index 5979a2c71..d0e78bfaa 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue @@ -66,6 +66,11 @@ export default { // Instanciate vis objects in window variables, see vis-network.js window.network = new vis.Network(this.container, this.visgraph_data, window.options ) // A + }, + forceUpdateComponent() { + console.log('forceUpdateComponent - method 3') + this.$forceUpdate() + this.refreshNetwork } } /*