- ngOnInit () {
- forkJoin([
- this.instanceService.getAbout(),
- this.serverService.localeObservable.pipe(first()),
- this.serverService.videoLanguagesLoaded.pipe(first()),
- this.serverService.videoCategoriesLoaded.pipe(first())
- ]).subscribe(
- async ([ res, translations ]) => {
- this.shortDescription = res.instance.shortDescription
-
- this.maintenanceLifetime = res.instance.maintenanceLifetime
- this.businessModel = res.instance.businessModel
-
- for (const key of [ 'description', 'terms', 'codeOfConduct', 'moderationInformation', 'administrator' ]) {
- this.html[ key ] = await this.markdownService.textMarkdownToHTML(res.instance[ key ])
- }
-
- const languagesArray = this.serverService.getVideoLanguages()
- const categoriesArray = this.serverService.getVideoCategories()
+ async ngOnInit () {
+ this.serverConfig = this.serverService.getTmpConfig()
+ this.serverService.getConfig()
+ .subscribe(config => this.serverConfig = config)