This commit is contained in:
MeysamMoghaddam
2025-10-12 23:52:34 +03:30
parent 5211f7ce38
commit 82931f8313
2 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
using Blazored.LocalStorage;
using FrontOffice.BFF.Package.Protobuf.Protos.Package;
using FrontOffice.Main.Shared;
using FrontOffice.Main.Utilities;
using Grpc.Core;
using Microsoft.AspNetCore.Components;
@@ -228,6 +229,19 @@ public partial class PackageDetail : IDisposable
Navigation.NavigateTo($"{RouteConstants.Package.Detail}/{packageId}");
}
private async Task OpenAuthDialog()
{
var dialog = await DialogService.ShowAsync<AuthDialog>("ورود به حساب کاربری");
var result = await dialog.Result;
if (!result.Canceled)
{
// User logged in successfully, refresh the page to show comment form
await CheckAuthStatus();
await InvokeAsync(StateHasChanged);
}
}
public void Dispose()
{
_loadCts?.Cancel();