|
@@ -354,6 +354,7 @@ export const ConcernementsStore = defineStore({
|
|
openCloseConcernements (cid, id) {
|
|
openCloseConcernements (cid, id) {
|
|
console.log(`openCloseConcernements cid: ${cid}, id: ${id}`);
|
|
console.log(`openCloseConcernements cid: ${cid}, id: ${id}`);
|
|
var state;
|
|
var state;
|
|
|
|
+ let mapitem_id = id ? id : cid;
|
|
this.opened_concernement = null;
|
|
this.opened_concernement = null;
|
|
this.opened_recit = null;
|
|
this.opened_recit = null;
|
|
this.concernements.forEach((c, i) => {
|
|
this.concernements.forEach((c, i) => {
|
|
@@ -362,7 +363,7 @@ export const ConcernementsStore = defineStore({
|
|
c.opened = this.concernements[i].opened = this.concernementsByID[c.id].opened = state;
|
|
c.opened = this.concernements[i].opened = this.concernementsByID[c.id].opened = state;
|
|
if (state) {
|
|
if (state) {
|
|
this.opened_concernement = c;
|
|
this.opened_concernement = c;
|
|
- this.opened_concernement.opened_mapitem_id = id;
|
|
|
|
|
|
+ this.opened_concernement.opened_mapitem_id = mapitem_id;
|
|
if (c.has_recit && this.map_mode === "terraindevie") {
|
|
if (c.has_recit && this.map_mode === "terraindevie") {
|
|
this.opened_recit = c.recit;
|
|
this.opened_recit = c.recit;
|
|
}
|
|
}
|