diff --git a/src/app/chat/data-access/chat-state.service.ts b/src/app/chat/data-access/chat-state.service.ts index 5297a3c0..719220a9 100644 --- a/src/app/chat/data-access/chat-state.service.ts +++ b/src/app/chat/data-access/chat-state.service.ts @@ -20,7 +20,7 @@ import { chatStateAdapter } from './chat-state.adapter'; import { TimerService } from '@shared/util/time/timer.service'; import { startWith } from 'rxjs/operators'; import { ActivatedRoute } from '@angular/router'; -import { AuthStorageService } from '@shared/data-access/auth/auth-storage.service'; +import { AuthService } from '@shared/data-access/auth/auth.service'; import { OwnProfileService } from '@shared/data-access/profile/own-profile.service'; export type SingleChatState = { @@ -45,7 +45,7 @@ export type ChatAdaptState = { export class ChatStateService { private readonly storePath = 'chat'; private activatedRoute = inject(ActivatedRoute); - private authStorageService = inject(AuthStorageService); + private authStorageService = inject(AuthService); private profileService = inject(OwnProfileService); private userLoggedOut$ = this.authStorageService.hasLoggedOut$.pipe( diff --git a/src/app/home/feature/contact/contact.component.ts b/src/app/home/feature/contact/contact.component.ts index 2bc25e93..8a310546 100644 --- a/src/app/home/feature/contact/contact.component.ts +++ b/src/app/home/feature/contact/contact.component.ts @@ -5,8 +5,8 @@ import { ReactiveFormsModule, Validators, } from '@angular/forms'; -import { AuthStorageService } from '@shared/data-access/auth/auth-storage.service'; -import { AuthenticationService } from '@shared/data-access/auth/authentication.service'; +import { AuthService } from '@shared/data-access/auth/auth.service'; +import { AuthHttpService } from '@shared/data-access/auth/auth-http.service'; import { EventLogService } from '@shared/data-access/log/event-log.service'; import { ContactService } from '../../data-access/contact.service'; import { tap } from 'rxjs'; @@ -49,8 +49,8 @@ export class ContactComponent implements OnInit { constructor( private fb: NonNullableFormBuilder, private contactService: ContactService, - public authStorageService: AuthStorageService, - private authenticationService: AuthenticationService, + public authStorageService: AuthService, + private authenticationService: AuthHttpService, private eventLogService: EventLogService ) {} diff --git a/src/app/home/feature/landing-page.component.ts b/src/app/home/feature/landing-page.component.ts index 286f2d03..8bf73870 100644 --- a/src/app/home/feature/landing-page.component.ts +++ b/src/app/home/feature/landing-page.component.ts @@ -1,6 +1,8 @@ -import { Component } from '@angular/core'; +import { Component, inject } from '@angular/core'; import { Router } from '@angular/router'; import { EventLogService } from '@shared/data-access/log/event-log.service'; +import { AuthService } from '@shared/data-access/auth/auth.service'; +import { NgIf } from '@angular/common'; @Component({ selector: 'app-landing-page', @@ -36,6 +38,7 @@ import { EventLogService } from '@shared/data-access/log/event-log.service'; Wir verbinden Tänzer