From 22cb68b0c5ee3b12b686e0c5739c2020fd95ef1e Mon Sep 17 00:00:00 2001 From: MishaZhem Date: Thu, 22 Aug 2024 14:10:12 +0300 Subject: [PATCH] chore: update login --- .../src/dashboards/login/login.component.html | 21 ++++++++---- .../src/dashboards/login/login.component.less | 8 +++++ .../src/dashboards/login/login.component.ts | 34 +++++++++++++++++-- 3 files changed, 53 insertions(+), 10 deletions(-) diff --git a/apps/taiga-lumbermill/src/dashboards/login/login.component.html b/apps/taiga-lumbermill/src/dashboards/login/login.component.html index 4fdd6f5aa..d75119b73 100644 --- a/apps/taiga-lumbermill/src/dashboards/login/login.component.html +++ b/apps/taiga-lumbermill/src/dashboards/login/login.component.html @@ -17,9 +17,9 @@ > email @@ -34,9 +34,9 @@ password @@ -65,13 +65,20 @@ Forgot password? - + +

(); + + protected readonly submitLoader = toSignal( + this.submit$.pipe( + switchMap(() => + timer(4000).pipe( + map(() => this.goMain()), + startWith(true), + ), + ), + ), + {initialValue: false}, + ); + + protected goMain(): boolean { + this.router.navigate(['']); + + return false; + } + + protected onSubmit(): void { + this.submit$.next(); + } }