Files
FrontOffice/src/FrontOffice.Main/Utilities/AuthDialogService.cs
T
masoodafar-web 6db83ccd90
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 4m55s
feat: full FrontOffice updates - discount store, blog, payment gateway, UI improvements
- Discount store pages (products, cart, orders, order detail)
- Blog pages and services
- Payment gateway callback page
- AppImage component, EmptyState, LoadingState, PageHeader
- DiscountCartService, DiscountOrderService, DiscountProductService
- BlogCategoryService, BlogPostService, SitePageService, ImageCacheService
- PhoneVerifyForm component
- Profile Hub page
- UI/UX improvements across all pages
- landing.js for homepage
- Config and routing updates
2026-02-16 00:51:39 +03:30

35 lines
1.0 KiB
C#

using MudBlazor;
namespace FrontOffice.Main.Utilities;
public class AuthDialogService
{
private readonly IDialogService _dialogService;
private readonly IDeviceDetector _deviceDetector;
private readonly DialogOptions _dialogOptions = new()
{
MaxWidth = MaxWidth.ExtraSmall,
FullWidth = true,
CloseButton = true
};
public AuthDialogService(IDialogService dialogService, IDeviceDetector deviceDetector)
{
ArgumentNullException.ThrowIfNull(dialogService);
ArgumentNullException.ThrowIfNull(deviceDetector);
_dialogService = dialogService!;
_deviceDetector = deviceDetector!;
}
public async Task ShowAuthDialogAsync()
{
var dialog = await _dialogService.ShowAsync<Shared.AuthDialog>("ورود به حساب کاربری", _dialogOptions);
var result = await dialog.Result;
if (!result.Canceled)
{
// User logged in successfully
// You can add additional logic here if needed
}
}
}