Add MainService for state management and update Index and AuthDialog to utilize it

This commit is contained in:
masoodafar-web
2025-11-20 21:07:05 +03:30
parent 30bac23114
commit 973beb9e2f
5 changed files with 47 additions and 12 deletions

View File

@@ -231,7 +231,10 @@ public partial class AuthDialog : IDisposable
{
MudDialog?.Close();
}
await OnLoginSuccess.InvokeAsync();
await InvokeAsync(StateHasChanged);
MainService.OnOnChangeHandler();
// await OnLoginSuccessAsync();
return true;
}