@page "/" @using Remotely.Server.Services @using Remotely.Shared.Models @namespace Remotely.Server.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @inject IDataService DataService @inject IApplicationConfig AppConfig @{ Layout = null; var user = DataService.GetUserByNameWithOrg(User?.Identity?.Name); } Remotely @if (user is RemotelyUser) { switch (user.UserOptions.Theme) { case Remotely.Shared.Enums.Theme.Light: break; case Remotely.Shared.Enums.Theme.Dark: break; default: break; } } else { if (AppConfig.Theme == Remotely.Shared.Enums.Theme.Light) { } else { } }
An error has occurred. This application may no longer respond until reloaded. An unhandled exception has occurred. See browser dev tools for details. Reload 🗙