Refactor AuthDialog to remove captcha handling and improve dialog display options

This commit is contained in:
masoodafar-web
2025-11-14 10:49:46 +03:30
parent 07ea8f0f47
commit e86cb7aa47
6 changed files with 133 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ namespace FrontOffice.Main.Utilities;
public class AuthDialogService
{
private readonly IDialogService _dialogService;
private readonly DialogOptions _maxWidth = new() { MaxWidth = MaxWidth.Medium, FullWidth = true, };
public AuthDialogService(IDialogService dialogService)
{
@@ -14,7 +15,8 @@ public class AuthDialogService
public async Task ShowAuthDialogAsync()
{
var dialog = await _dialogService.ShowAsync<Shared.AuthDialog>("ورود به حساب کاربری");
var dialog = await _dialogService.ShowAsync<Shared.AuthDialog>("ورود به حساب کاربری",_maxWidth);
var result = await dialog.Result;
if (!result.Canceled)