- this.instanceService.getAbout()
- .pipe(
- switchMap(about => {
- return forkJoin([
- this.instanceService.buildTranslatedLanguages(about),
- this.instanceService.buildTranslatedCategories(about)
- ]).pipe(map(([ languages, categories ]) => ({ about, languages, categories })))
- })
- ).subscribe(
- async ({ about, languages, categories }) => {
- 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)
- },
-
- () => this.notifier.error(this.i18n('Cannot get about information from server'))
- )
+ 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)