puissance d'agir almost ok
This commit is contained in:
@@ -20,6 +20,7 @@ export const ConcernementsStore = defineStore({
|
||||
concernements: [],
|
||||
concernementsByID: {},
|
||||
allEntitesById: {},
|
||||
allBesoinsById: {},
|
||||
opened: false,
|
||||
opened_entite_id: null,
|
||||
ct_concernement: {},
|
||||
@@ -70,8 +71,12 @@ export const ConcernementsStore = defineStore({
|
||||
concernement.entites.push(entite); // fill the entites array with visible entite only
|
||||
}
|
||||
});
|
||||
|
||||
// puissance d'agir
|
||||
concernement.has_puissancedagir = concernement.besoins.length ? true : false;
|
||||
concernement.besoins.forEach(besoin => {
|
||||
this.allBesoinsById[besoin.id] = besoin;
|
||||
});
|
||||
|
||||
// common
|
||||
this.concernements.push(concernement);
|
||||
|
Reference in New Issue
Block a user