@using ImageBoardServerApp.Data.Repository
@inject AuthenticationStateProvider authStateProvider
@inject NavigationManager navManager
@code {
private bool collapseNavMenu = true;
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
private void ToggleNavMenu()
{
collapseNavMenu = !collapseNavMenu;
}
public List boards { get; set; }
protected override async Task OnParametersSetAsync()
{
await base.OnParametersSetAsync();
boards = await BoardsRepository.getBoardsAsync();
}
}