-
@@ -23,7 +24,6 @@
-
diff --git a/src/app/header/components/nav-bar/nav-bar.component.ts b/src/app/header/components/nav-bar/nav-bar.component.ts
index fc81ce2..2313221 100644
--- a/src/app/header/components/nav-bar/nav-bar.component.ts
+++ b/src/app/header/components/nav-bar/nav-bar.component.ts
@@ -9,15 +9,21 @@ import { environment } from 'src/environments/environment';
styleUrls: ['./nav-bar.component.scss']
})
export class NavBarComponent implements OnInit {
- tokenKey = environment.tokenKey;
- constructor( private tokenService : TokenService, public route: Router) { }
+ private tokenKey: string;
+
+
+ constructor( private tokenService : TokenService, public route: Router) {
+
+ this.tokenKey = environment.tokenKey;
+ }
ngOnInit(): void {
}
onCloseSession() : void {
-this.tokenService.destroyToken();
+
+this.tokenService.destroyToken(this.tokenKey);
this.route.navigate(['signin']);
}
diff --git a/src/app/pages/admin-page/admin-page.component.html b/src/app/pages/admin-page/admin-page.component.html
index 184fccc..32d34ce 100644
--- a/src/app/pages/admin-page/admin-page.component.html
+++ b/src/app/pages/admin-page/admin-page.component.html
@@ -1,9 +1,16 @@
-
\ No newline at end of file
+
+
diff --git a/src/app/pages/admin-page/admin-page.component.scss b/src/app/pages/admin-page/admin-page.component.scss
index 8e1cebc..e69de29 100644
--- a/src/app/pages/admin-page/admin-page.component.scss
+++ b/src/app/pages/admin-page/admin-page.component.scss
@@ -1,3 +0,0 @@
-.search-bar{
- width : 30%;
-}
\ No newline at end of file
diff --git a/src/app/pages/filters-page/filters-page.component.html b/src/app/pages/filters-page/filters-page.component.html
index 00fb9ba..b07ef48 100644
--- a/src/app/pages/filters-page/filters-page.component.html
+++ b/src/app/pages/filters-page/filters-page.component.html
@@ -8,7 +8,7 @@