From c4095e6cf7f8e1ac60de7f4b15ec5fa443504e15 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Tue, 12 Jan 2021 13:50:55 +0100 Subject: [PATCH] fix: clean code --- .../claim-structure/claim-structure.component.ts | 12 ------------ 1 file changed, 12 deletions(-) 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 5b8f854be..019a1e680 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); - // } - // } } -- GitLab