From 0f68db5042be8e8f134bcdda0f6c9bc0772a4718 Mon Sep 17 00:00:00 2001 From: Romain Verger Date: Fri, 4 Mar 2022 15:18:44 +0100 Subject: [PATCH] maj --- .../update-del-restau/update-del-restau.component.ts | 7 +------ .../header/components/nav-bar/nav-bar.component.html | 5 ++--- .../header/components/nav-bar/nav-bar.component.ts | 12 +++++++++--- src/app/pages/models/user.ts | 2 +- src/app/pages/signin/signin.component.html | 1 - src/app/services/auth.guard.ts | 1 - src/app/services/token.service.ts | 4 ++-- 7 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/app/admin-component/update-del-restau/update-del-restau.component.ts b/src/app/admin-component/update-del-restau/update-del-restau.component.ts index ea7d325..34ff3b2 100644 --- a/src/app/admin-component/update-del-restau/update-del-restau.component.ts +++ b/src/app/admin-component/update-del-restau/update-del-restau.component.ts @@ -15,9 +15,7 @@ export class UpdateDelRestauComponent implements OnInit { this.restauList = []; } - ngOnInit(): void { - - } + ngOnInit(): void {} saveRestauList(event : any){ @@ -28,10 +26,7 @@ export class UpdateDelRestauComponent implements OnInit { deleteRestau(idRestau : number | undefined){ this.apiBackService.deleteRestau(idRestau).subscribe( resp =>{ - - this.restauList = this.restauList.filter(restaus => restaus.id != idRestau) - }); } diff --git a/src/app/header/components/nav-bar/nav-bar.component.html b/src/app/header/components/nav-bar/nav-bar.component.html index 698a52b..8fadc20 100644 --- a/src/app/header/components/nav-bar/nav-bar.component.html +++ b/src/app/header/components/nav-bar/nav-bar.component.html @@ -9,8 +9,8 @@ aria-label="Toggle navigation"> -