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(); + } }