@page "/Settings/Library" @inject IMessageService MessageService @inject ILogger Logger @attribute [Authorize(Roles = RoleService.AdministratorRoleName)]
Allows users to manage the games they see in their library. This also enables the Depot! Restricts the games that users can see in their library and the depot based on their role. Visit Settings / Roles to assign collections to roles.
@code { Settings Settings = SettingService.GetSettings(); void Save() { try { SettingService.SaveSettings(Settings); MessageService.Success("Settings saved!"); } catch (Exception ex) { MessageService.Error("An unknown error occurred."); Logger.LogError(ex, "An unknown error occurred."); } } }