diff --git a/src/app/admin/components/claim-structure/claim-structure.component.ts b/src/app/admin/components/claim-structure/claim-structure.component.ts index 5b8f854bed6509422119ca3bdfed854810eaa089..019a1e68008f90072c7876877ee8e1518b3a0396 100644 --- a/src/app/admin/components/claim-structure/claim-structure.component.ts +++ b/src/app/admin/components/claim-structure/claim-structure.component.ts @@ -17,27 +17,15 @@ export class ClaimStructureComponent implements OnInit { }); } - // Todo : Appeler removeDemand(demand) dans le subscribe de acceptAttachmentStructure() quand l'api sera faite. public acceptDemand(demand: DemandAttachment): void { - console.log('accept'); this.adminService.acceptStructureClaim(demand.userEmail, demand.structureId).subscribe((data) => { this.demandsAttachment = data; }); } - // Todo : Appeler removeDemand(demand) dans le subscribe de acceptAttachmentStructure() quand l'api sera faite. public refuseDemand(demand: DemandAttachment): void { - console.log('refuse'); this.adminService.refuseStructureClaim(demand.userEmail, demand.structureId).subscribe((data) => { this.demandsAttachment = data; }); } - - // Remove the request that was accepted or refused - // private removeDemand(demand: DemandAttachment): void { - // const index = this.demandsAttachment.findIndex((d: DemandAttachment) => d === demand); - // if (index > -1) { - // this.demandsAttachment.splice(index, 1); - // } - // } }