From b13ac3a919fad652e0fe2611adfb328fc3307135 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 17 May 2022 17:24:17 +0200 Subject: [PATCH 1/2] household filiations: fetch person info when unfolding person node --- .../ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue | 3 ++- .../ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue index f86c68576..cfc9f2a76 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue @@ -305,7 +305,8 @@ export default { if (this.listenPersonFlag === 'normal') { if (person.folded === true) { //console.log(' @@> expand mode event') - this.$store.commit('unfoldPerson', person) + this.$store.commit('unfoldPerson', person); + this.$store.dispatch('fetchInfoForPerson', person); } } else { //console.log(' @@> create link mode event') diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js index 32aa5bbc9..8382d460d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js @@ -252,7 +252,6 @@ const store = createStore({ if (!person.folded) { return; } - //console.log('unfoldPerson', person) person.label = person._label delete person._label delete person.title From d8db8c0f8e7620d6c2ae1c37ec02749c3e576669 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 17 May 2022 17:46:01 +0200 Subject: [PATCH 2/2] upd CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 077cc0242..d9fa5c310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to ## Unreleased +* [person] household filiation: fetch person info when unfolding person (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/586) * [admin] refactorisation of the admin section: reorganisation of the menu, translations, form types, new entities (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/592) * [admin] add admin section for languages and countries (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/596) * [activity] activity admin: translations + remove label field for comment on admin activity type (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/587)