|
|
@ -16,7 +16,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
|
})
|
|
|
|
})
|
|
|
|
export class AppComponent {
|
|
|
|
export class AppComponent {
|
|
|
|
title = 'fLotte-fRontend';
|
|
|
|
title = 'fLotte-fRontend';
|
|
|
|
darkThemeIsActive: boolean = false;
|
|
|
|
darkThemeIsActive: boolean = true;
|
|
|
|
loggedIn = false;
|
|
|
|
loggedIn = false;
|
|
|
|
|
|
|
|
|
|
|
|
@ViewChild('sidenav') public sideNav:MatSidenav;
|
|
|
|
@ViewChild('sidenav') public sideNav:MatSidenav;
|
|
|
@ -36,7 +36,7 @@ export class AppComponent {
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.renderer.addClass(document.body, 'mat-app-background'); //so the background color changes dependent on current theme
|
|
|
|
this.renderer.addClass(document.body, 'mat-app-background'); //so the background color changes dependent on current theme
|
|
|
|
this.themeService.load();
|
|
|
|
this.themeService.load();
|
|
|
|
this.darkThemeIsActive = this.themeService.currentActive() === 'dark-theme';
|
|
|
|
this.darkThemeIsActive = this.themeService.currentActive() !== 'light-theme';
|
|
|
|
this.authService.loggedIn.subscribe((value) => (this.loggedIn = value));
|
|
|
|
this.authService.loggedIn.subscribe((value) => (this.loggedIn = value));
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
this.matIconRegistry.addSvgIcon(
|
|
|
|
"cargobike",
|
|
|
|
"cargobike",
|
|
|
|