fix gql cache probleme for getUserEntites

This commit is contained in:
2024-05-29 17:47:28 +02:00
parent f683978b7c
commit 9a7db9d7d2
3 changed files with 27 additions and 5 deletions

View File

@@ -215,6 +215,8 @@ export default {
'reloadConcernementEntites',
'reloadProximites'
]),
...mapActions(UserStore, ['getUserEntitees']),
onClickInfos(){
this.infos_opened = !this.infos_opened;
},
@@ -269,11 +271,22 @@ export default {
this.recordConcernementEntiteField(parag)
.then((concernement) => {
console.log('concernement', concernement);
// TODO reload the map item
// reload the map item
this.reloadConcernementEntites(concernement.nid[0].value)
.then(() => {
this.reloading_concernements = false;
});
// TODO reset the user entites liste caching
// this.getUserEntitees()
// .then(() => {
// console.log('added entite, user entites reloaded');
// })
// .catch(error => {
// console.warn('Issue with graphql userentites loading', error);
// })
// this.reloadConcernements()
// .then(() => {
// this.reloading_concernements = false;
@@ -524,7 +537,8 @@ export default {
bundle: 'entite',
id: this.entite.id,
field: {field_name: 'title', value:'value'}
}" />
}"
v-on:updated="reloadConcernementEntites(cid)"/>
<!-- proximité -->
<section