import { SelectOptionsItem } from 'src/types/select-options-item.model'
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'
import { FormGroup } from '@angular/forms'
-import { MenuService } from '@app/core'
+import { MenuService, ThemeService } from '@app/core'
import { HTMLServerConfig } from '@shared/models'
import { ConfigService } from '../shared/config.service'
constructor (
private configService: ConfigService,
- private menuService: MenuService
+ private menuService: MenuService,
+ private themeService: ThemeService
) { }
ngOnInit () {
}
getAvailableThemes () {
- return this.serverConfig.theme.registered
- .map(t => t.name)
+ return this.themeService.getAvailableThemeLabels()
}
doesTrendingVideosAlgorithmsEnabledInclude (algorithm: string) {
}))
}
+ getDefaultThemeLabel () {
+ return this.themeService.getDefaultThemeLabel()
+ }
+
private checkSignupField () {
const signupControl = this.form.get('signup.enabled')