From d0d458347dcedc6f2f68b3074b2eeda7e3037264 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 12 Jul 2026 09:27:26 +0200 Subject: [PATCH] Task/simplify webauthn page (#7305) Simplify webauthn page --- apps/client/src/app/app.routes.ts | 3 +-- .../src/app/pages/webauthn/webauthn-page.component.ts | 3 +-- apps/client/src/app/pages/webauthn/webauthn-page.html | 6 ------ .../src/lib/routes/interfaces/internal-route.interface.ts | 2 +- libs/common/src/lib/routes/routes.ts | 3 +-- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/apps/client/src/app/app.routes.ts b/apps/client/src/app/app.routes.ts index 9588cee68..2c0591b2c 100644 --- a/apps/client/src/app/app.routes.ts +++ b/apps/client/src/app/app.routes.ts @@ -128,8 +128,7 @@ export const routes: Routes = [ import('./pages/webauthn/webauthn-page.component').then( (c) => c.GfWebauthnPageComponent ), - path: internalRoutes.webauthn.path, - title: internalRoutes.webauthn.title + path: internalRoutes.webauthn.path }, { path: internalRoutes.zen.path, diff --git a/apps/client/src/app/pages/webauthn/webauthn-page.component.ts b/apps/client/src/app/pages/webauthn/webauthn-page.component.ts index 8e7e58fd1..d988e1bb9 100644 --- a/apps/client/src/app/pages/webauthn/webauthn-page.component.ts +++ b/apps/client/src/app/pages/webauthn/webauthn-page.component.ts @@ -1,6 +1,5 @@ import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service'; -import { GfLogoComponent } from '@ghostfolio/ui/logo'; import { ChangeDetectorRef, @@ -15,7 +14,7 @@ import { Router } from '@angular/router'; @Component({ host: { class: 'page' }, - imports: [GfLogoComponent, MatButtonModule, MatProgressSpinnerModule], + imports: [MatButtonModule, MatProgressSpinnerModule], selector: 'gf-webauthn-page', styleUrls: ['./webauthn-page.scss'], templateUrl: './webauthn-page.html' diff --git a/apps/client/src/app/pages/webauthn/webauthn-page.html b/apps/client/src/app/pages/webauthn/webauthn-page.html index 308a7096b..a5cce9700 100644 --- a/apps/client/src/app/pages/webauthn/webauthn-page.html +++ b/apps/client/src/app/pages/webauthn/webauthn-page.html @@ -1,12 +1,6 @@
-
- -
- @if (!hasError) {
diff --git a/libs/common/src/lib/routes/interfaces/internal-route.interface.ts b/libs/common/src/lib/routes/interfaces/internal-route.interface.ts index f08cf8b5c..8240db46a 100644 --- a/libs/common/src/lib/routes/interfaces/internal-route.interface.ts +++ b/libs/common/src/lib/routes/interfaces/internal-route.interface.ts @@ -5,5 +5,5 @@ export interface InternalRoute { path?: string; routerLink: string[]; subRoutes?: Record; - title: string; + title?: string; } diff --git a/libs/common/src/lib/routes/routes.ts b/libs/common/src/lib/routes/routes.ts index 2785efdde..8132520fc 100644 --- a/libs/common/src/lib/routes/routes.ts +++ b/libs/common/src/lib/routes/routes.ts @@ -153,8 +153,7 @@ export const internalRoutes = { webauthn: { excludeFromAssistant: true, path: 'webauthn', - routerLink: ['/webauthn'], - title: $localize`Sign in` + routerLink: ['/webauthn'] }, zen: { excludeFromAssistant: true,