Fehler behebung

This commit is contained in:
Timo Knuth
2025-12-03 11:51:00 +01:00
parent d2953fd0d9
commit 30ecc292cd
20 changed files with 379 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { Component, HostListener } from '@angular/core';
import { AfterViewInit, Component, HostListener } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router, RouterOutlet } from '@angular/router';
import { initFlowbite } from 'flowbite';
import { filter } from 'rxjs/operators';
import build from '../build';
import { ConfirmationComponent } from './components/confirmation/confirmation.component';
@@ -25,7 +25,7 @@ import { UserService } from './services/user.service';
templateUrl: './app.component.html',
styleUrl: './app.component.scss',
})
export class AppComponent {
export class AppComponent implements AfterViewInit {
build = build;
title = 'bizmatch';
actualRoute = '';
@@ -48,7 +48,15 @@ export class AppComponent {
this.actualRoute = currentRoute.snapshot.url[0].path;
});
}
ngOnInit() {}
ngOnInit() {
// Navigation tracking moved from constructor
}
ngAfterViewInit() {
// Flowbite wird nicht mehr zentral initialisiert
// Drawers funktionieren automatisch durch data-drawer-target Attribute
}
@HostListener('window:keydown', ['$event'])
handleKeyboardEvent(event: KeyboardEvent) {
if (event.shiftKey && event.ctrlKey && event.key === 'V') {