Skip to content
Snippets Groups Projects
Commit 897a215b authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

fix(structure-details): display workshops again in structure details

parent 99afbfa8
3 merge requests!2401.16 into 2.0,!2391.16.0,!236fix : display workshops again in structure details
......@@ -94,6 +94,7 @@ export class StructureDetailsComponent implements OnInit {
this.socialAndProfessionalsReferentiel = referentiel;
}
});
this.setServiceCategories();
if (this.printMode) {
this.printService.onDataReady();
}
......@@ -249,6 +250,24 @@ export class StructureDetailsComponent implements OnInit {
}
}
public setServiceCategories(): void {
this.baseSkills = this.structure.baseSkills.map((skill) =>
_.find(this.baseSkillssReferentiel.modules, { id: skill })
);
this.accessRights = this.structure.accessRight.map((rights) =>
_.find(this.accessRightsReferentiel.modules, { id: rights })
);
this.parentingHelp = this.structure.parentingHelp.map((help) =>
_.find(this.parentingHelpsReferentiel.modules, { id: help })
);
this.socialAndProfessional = this.structure.socialAndProfessional.map((skill) =>
_.find(this.socialAndProfessionalsReferentiel.modules, { id: skill })
);
this.digitalCultureSecurity = this.structure.digitalCultureSecurity.map((skill) =>
_.find(this.digitalCultureSecuritysReferentiel.modules, { id: skill })
);
}
public keepOriginalOrder = (a, b) => a.key;
public isBaseSkills(): boolean {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment