- ngOnInit () {
- this.serverService.getAbout()
- .subscribe(
- res => {
- this.shortDescription = res.instance.shortDescription
- this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
- this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
- },
-
- err => this.notificationsService.error(this.i18n('Error getting about from server'), err)
- )
+ async ngOnInit () {
+ this.serverConfig = this.serverService.getTmpConfig()
+ this.serverService.getConfig()
+ .subscribe(config => this.serverConfig = config)
+
+ const { about, languages, categories }: ResolverData = this.route.snapshot.data.instanceData
+
+ this.languages = languages
+ this.categories = categories
+
+ this.shortDescription = about.instance.shortDescription
+
+ this.creationReason = about.instance.creationReason
+ this.maintenanceLifetime = about.instance.maintenanceLifetime
+ this.businessModel = about.instance.businessModel
+
+ this.html = await this.instanceService.buildHtml(about)