refactoring: replaced global var opened by opened_concernement

This commit is contained in:
2023-06-26 12:26:16 +02:00
parent 36275fb9f3
commit 45cd0341fe
5 changed files with 33 additions and 28 deletions

View File

@@ -21,7 +21,7 @@ export const ConcernementsStore = defineStore({
concernementsByID: {},
allEntitesById: {},
allBesoinsById: {},
opened: false,
opened_concernement: false,
opened_entite_id: null,
ct_concernement: {},
ct_entite: {},
@@ -220,12 +220,12 @@ export const ConcernementsStore = defineStore({
state = id === c.id;
this.concernements[i].opened = this.concernementsByID[c.id].opened = state;
if (state) {
this.opened = c;
this.opened_concernement = c;
}
});
},
resetConcernementOpened () {
this.opened = null;
this.opened_concernement = null;
this.openCloseConcernements();
},
setOpenedEntityId(id){