From 53d932655e35f9ab921049410b702b0dcfb11092 Mon Sep 17 00:00:00 2001 From: kfj001 Date: Sat, 20 Jun 2026 21:13:03 +0000 Subject: [PATCH] fixed login dialog reporting issues and responsiveness problem --- src/app/login/login.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 1b7ef4d..d12bb71 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -1,4 +1,4 @@ -import { Component, inject } from '@angular/core'; +import { ChangeDetectorRef, Component, inject } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Router } from '@angular/router'; @@ -16,6 +16,7 @@ import { AuthService } from '../services/auth.service'; export class LoginComponent { private auth = inject(AuthService); private router = inject(Router); + private cdr = inject(ChangeDetectorRef); username = ''; password = ''; @@ -42,6 +43,7 @@ export class LoginComponent { this.error = typeof body === 'string' ? body : 'Login failed. Please try again.'; } finally { this.loading = false; + this.cdr.detectChanges(); } } }