Refactor AuthDialog to remove captcha handling and improve dialog display options
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user