import { AuthService, Notifier, ServerService, ThemeService, UserService } from '@app/core'
import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
import { HTMLServerConfig, User, UserUpdateMe } from '@shared/models'
+import { SelectOptionsItem } from 'src/types'
@Component({
selector: 'my-user-interface-settings',
@Input() notifyOnUpdate = true
@Input() userInformationLoaded: Subject<any>
+ availableThemes: SelectOptionsItem[]
formValuesWatcher: Subscription
private serverConfig: HTMLServerConfig
ngOnInit () {
this.serverConfig = this.serverService.getHTMLConfig()
+ this.availableThemes = this.themeService.buildAvailableThemes()
+
this.buildForm({
theme: null
})
return this.themeService.getDefaultThemeLabel()
}
- getAvailableThemes () {
- return this.themeService.getAvailableThemeLabels()
- }
-
getDefaultInstanceThemeLabel () {
const theme = this.serverConfig.theme.default