- ngOnInit () {
- this.instanceService.getAbout()
- .subscribe(
- res => {
- this.shortDescription = res.instance.shortDescription
- this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
- this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
- },
-
- () => this.notifier.error(this.i18n('Cannot get about information from server'))
- )
+ this.serverConfig = this.serverService.getHTMLConfig()
+
+ this.route.data.subscribe(data => {
+ if (!data?.isContact) return
+
+ const prefill = this.route.snapshot.queryParams
+
+ this.contactAdminModal.show(prefill)
+ })
+
+ this.languages = languages
+ this.categories = categories
+
+ this.shortDescription = about.instance.shortDescription
+ this.descriptionContent = about.instance.description
+
+ this.html = await this.instanceService.buildHtml(about)
+
+ this.initialized = true