u
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using Blazored.LocalStorage;
|
||||
using FrontOffice.Main.Shared;
|
||||
using FrontOffice.Main.Utilities;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using MudBlazor;
|
||||
|
||||
namespace FrontOffice.Main;
|
||||
|
||||
@@ -23,6 +26,27 @@ public partial class App
|
||||
{
|
||||
// Store referral code in local storage
|
||||
await LocalStorage.SetItemAsync("referral:code", referralCode);
|
||||
|
||||
var options = new DialogOptions
|
||||
{
|
||||
BackdropClick = false,
|
||||
CloseOnEscapeKey = false
|
||||
};
|
||||
|
||||
var parameters = new DialogParameters<AuthDialog>
|
||||
{
|
||||
{ x => x.HideCancelButton, true }
|
||||
};
|
||||
var dialog = await DialogService.ShowAsync<AuthDialog>("ورود به حساب کاربری", parameters, options);
|
||||
var result = await dialog.Result;
|
||||
|
||||
if (!result.Canceled)
|
||||
{
|
||||
Snackbar.Add(GlobalConstants.SuccessMsg, Severity.Success);
|
||||
await Task.Delay(1000);
|
||||
Navigation.NavigateTo(Navigation.Uri, forceLoad: true);
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user