|
@@ -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
|