u
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user