- ngOnInit () {
- forkJoin([
- this.instanceService.getAbout(),
- this.serverService.localeObservable.pipe(first()),
- this.serverService.videoLanguagesLoaded.pipe(first()),
- this.serverService.videoCategoriesLoaded.pipe(first())
- ]).subscribe(
- async ([ about, translations ]) => {
- this.shortDescription = about.instance.shortDescription
+ async ngOnInit () {
+ const { about, languages, categories }: ResolverData = this.route.snapshot.data.instanceData
+
+ this.serverConfig = this.serverService.getHTMLConfig()
+
+ this.route.data.subscribe(data => {
+ if (!data?.isContact) return