Browse Source

Simplify webauthn page

pull/7305/head
Thomas Kaul 3 days ago
parent
commit
25d8f89db5
  1. 3
      apps/client/src/app/pages/webauthn/webauthn-page.component.ts
  2. 6
      apps/client/src/app/pages/webauthn/webauthn-page.html
  3. 3
      libs/common/src/lib/routes/routes.ts

3
apps/client/src/app/pages/webauthn/webauthn-page.component.ts

@ -1,6 +1,5 @@
import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service';
import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service'; import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service';
import { GfLogoComponent } from '@ghostfolio/ui/logo';
import { import {
ChangeDetectorRef, ChangeDetectorRef,
@ -15,7 +14,7 @@ import { Router } from '@angular/router';
@Component({ @Component({
host: { class: 'page' }, host: { class: 'page' },
imports: [GfLogoComponent, MatButtonModule, MatProgressSpinnerModule], imports: [MatButtonModule, MatProgressSpinnerModule],
selector: 'gf-webauthn-page', selector: 'gf-webauthn-page',
styleUrls: ['./webauthn-page.scss'], styleUrls: ['./webauthn-page.scss'],
templateUrl: './webauthn-page.html' templateUrl: './webauthn-page.html'

6
apps/client/src/app/pages/webauthn/webauthn-page.html

@ -1,12 +1,6 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col"> <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) { @if (!hasError) {
<div class="col d-flex justify-content-center"> <div class="col d-flex justify-content-center">
<mat-spinner [diameter]="20" /> <mat-spinner [diameter]="20" />

3
libs/common/src/lib/routes/routes.ts

@ -153,8 +153,7 @@ export const internalRoutes = {
webauthn: { webauthn: {
excludeFromAssistant: true, excludeFromAssistant: true,
path: 'webauthn', path: 'webauthn',
routerLink: ['/webauthn'], routerLink: ['/webauthn']
title: $localize`Sign in`
}, },
zen: { zen: {
excludeFromAssistant: true, excludeFromAssistant: true,

Loading…
Cancel
Save