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/app.component.html b/src/app/app.component.html index 0aa81f4..19dd0a6 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -3,4 +3,4 @@ - + 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"> -