@inherits LayoutComponentBase
@inject MesaFabApprovalAuthStateProvider authStateProvider
@inject IConfiguration Configuration
@inject IMemoryCache cache
@inject NavigationManager navManager
Mesa Fab Approval
@if (authStateProvider.CurrentUser is not null) {
@authStateProvider.CurrentUser.FirstName @authStateProvider.CurrentUser.LastName
}
Return to Main Site
@if (authStateProvider.CurrentUser is not null) {
Create New MRB
Dashboard
MRB List
}
@Body
@code {
bool _drawerOpen = true;
void DrawerToggle() {
_drawerOpen = !_drawerOpen;
}
void Logout() {
authStateProvider.Logout();
}
private void GoTo(string page) {
DrawerToggle();
cache.Set("redirectUrl", page);
navManager.NavigateTo(page);
}
}