## {{fragment | settingFragment}}

@let user = accountService.currentUser(); @if (user) { @switch (fragment) { @case (SettingsTabId.Activity) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.AdminDevices) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.General) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.OpenIDConnect) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Email) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Media) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Users) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Libraries) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.RemapRules) { @defer (prefetch on idle) {
} } @case (SettingsTabId.ManageMetadata) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.MediaIssues) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.EmailHistory) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.System) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Statistics) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Tasks) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.KavitaPlusLicense) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.MatchedMetadata) { @if (accountService.hasAdminRole() && licenseService.hasValidLicense()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.ManageUserTokens) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.MappingsImport) { @if (accountService.hasAdminRole()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Scrobbling) { @if (hasActiveLicense()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Metadata) { @if (hasActiveLicense()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.ScrobblingHolds) { @if (hasActiveLicense()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.MALStackImport) { @if (hasActiveLicense()) { @defer (prefetch on idle) {
} } } @case (SettingsTabId.Account) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Preferences) { @defer (prefetch on idle) {
} } @case (SettingsTabId.CustomKeyBinds) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Customize) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Clients) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Theme) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Font) { @defer (prefetch on idle) {
} } @case (SettingsTabId.Devices) { @defer (prefetch on idle) {
} } @case (SettingsTabId.CBLImport) { @defer (prefetch on idle) {
} } @case (SettingsTabId.ReadingProfiles) { @defer (prefetch on idle) {
} } } }