|
@@ -75,6 +75,7 @@ export default {
|
|
|
// console.log('App couple_ids', couple_ids);
|
|
|
// loop through all concernement
|
|
|
for(let [concernement_id, concernement] of Object.entries(this.concernementsByID)){
|
|
|
+ concernement.mapitems_ids = [];
|
|
|
// TODO check if more than 3 entities or if connected user if author
|
|
|
if (concernement.entites.length > 3 || concernement.can_update) {
|
|
|
// create the main mapitem object
|
|
@@ -113,15 +114,19 @@ export default {
|
|
|
};
|
|
|
this.mapitems.push(mapitem_superposition);
|
|
|
this.allMapItems_byid[mapitem_superposition.id] = mapitem_superposition;
|
|
|
+ concernement.mapitems_ids.push(mapitem_superposition.id)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
this.mapitems.push(mapitem)
|
|
|
this.allMapItems_byid[mapitem.id] = mapitem;
|
|
|
+ concernement.mapitems_ids.push(mapitem.id)
|
|
|
|
|
|
}
|
|
|
}
|
|
|
console.log('App mapitems', this.mapitems);
|
|
|
+ console.log('this.allMapItems_byid', this.allMapItems_byid);
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
components: {
|