Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/simplify webauthn page (#7305)

Thomas Kauld0d458347dce
diff --git a/apps/client/src/app/app.routes.ts b/apps/client/src/app/app.routes.ts
index 9588cee68a..2c0591b2cc 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 8e7e58fd14..d988e1bb98 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 308a7096b6..a5cce97009 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 @@
<div class="container">
<div class="row">
<div class="col">
- <div
- class="align-items-center d-flex flex-column justify-content-center mb-4 w-100"
- >
- <gf-logo size="medium" />
- </div>
-
@if (!hasError) {
<div class="col d-flex justify-content-center">
<mat-spinner [diameter]="20" />
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 f08cf8b5c9..8240db46ae 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<string, InternalRoute>;
- title: string;
+ title?: string;
}
diff --git a/libs/common/src/lib/routes/routes.ts b/libs/common/src/lib/routes/routes.ts
index 2785efdde0..8132520fc0 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,