@inject IAuthService AuthService @inject IApplicationConfig AppConfig @inject IDataService DataService
@code { private bool collapseNavMenu = true; private Dictionary _remoteControlAttributes = new() { ["target"] = "blank", ["href"] = "/RemoteControl" }; private RemotelyUser _user; protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); _user = await AuthService.GetUser(); } private string NavMenuCssClass => collapseNavMenu ? "collapse" : null; private void ToggleNavMenu() { collapseNavMenu = !collapseNavMenu; } }