From 55d122eeeabd16fa68c0a8073f7edeac1c9efe9f Mon Sep 17 00:00:00 2001 From: Romain Verger Date: Wed, 2 Mar 2022 12:40:21 +0100 Subject: [PATCH] modif connexion --- src/app/app-routing.module.ts | 2 +- src/app/app.component.html | 6 +++--- src/app/app.component.ts | 2 +- src/app/footer/footer.component.html | 2 +- src/app/header/components/nav-bar/nav-bar.component.html | 6 +++--- .../header/components/search-bar/search-bar.component.html | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 388143a..644c2ab 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -20,7 +20,7 @@ const routes: Routes = [ { path: 'Deconnexion', redirectTo: 'home'}, {path: 'restaurants', canActivate: [AuthGuard], component: RestoPageComponent}, {path: 'page-not-found',component: PageNotFoundComponent}, - {path: 'admin', component: AdminPageComponent}, + {path: 'admin', component: AdminPageComponent}, {path: '**', redirectTo: 'page-not-found' } ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index a555773..4b9776d 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ - - + + - + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 33e703c..be5ed0d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,7 +11,7 @@ export class AppComponent { title = 'simpleat'; dontShow: boolean = false; - constructor(private router:Router, private apiBackService : ApiBackService){ + constructor(public router:Router, private apiBackService : ApiBackService){ this.router.events.subscribe(e=>{ //console.log(e); if(e instanceof NavigationEnd){ diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html index f17079e..c0ed86d 100644 --- a/src/app/footer/footer.component.html +++ b/src/app/footer/footer.component.html @@ -1,4 +1,4 @@ -