Some checks failed
Game Ideas build for PR / build_test (pull_request) Failing after 35s
29 lines
714 B
C#
29 lines
714 B
C#
using GameIdeas.BlazorApp.Pages.UserMenu.Gateways;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace GameIdeas.BlazorApp.Pages.UserMenu;
|
|
|
|
public partial class UserMenu
|
|
{
|
|
[Inject] private IAuthGateway AuthGateway { get; set; } = default!;
|
|
[Inject] private NavigationManager NavigationManager { get; set; } = default!;
|
|
|
|
private bool ContentVisile = false;
|
|
|
|
private async Task HandleLogoutClicked()
|
|
{
|
|
ContentVisile = false;
|
|
await AuthGateway.Logout();
|
|
NavigationManager.NavigateTo("/Games");
|
|
}
|
|
|
|
private void HandleAccountClicked()
|
|
{
|
|
ContentVisile = true;
|
|
}
|
|
|
|
private void HandleBackdropFilterClicked()
|
|
{
|
|
ContentVisile = false;
|
|
}
|
|
} |