diff options
Diffstat (limited to 'client/src/app/+about/about-instance/about-instance.component.ts')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts index 5627aaa5a..f02048f39 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts | |||
@@ -2,10 +2,10 @@ import { ViewportScroller } from '@angular/common' | |||
2 | import { AfterViewChecked, Component, ElementRef, OnInit, ViewChild } from '@angular/core' | 2 | import { AfterViewChecked, Component, ElementRef, OnInit, ViewChild } from '@angular/core' |
3 | import { ActivatedRoute } from '@angular/router' | 3 | import { ActivatedRoute } from '@angular/router' |
4 | import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component' | 4 | import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component' |
5 | import { Notifier } from '@app/core' | 5 | import { Notifier, ServerService } from '@app/core' |
6 | import { CustomMarkupService } from '@app/shared/shared-custom-markup' | 6 | import { CustomMarkupService } from '@app/shared/shared-custom-markup' |
7 | import { InstanceService } from '@app/shared/shared-instance' | 7 | import { InstanceService } from '@app/shared/shared-instance' |
8 | import { About, ServerConfig } from '@shared/models' | 8 | import { About, HTMLServerConfig, ServerConfig } from '@shared/models' |
9 | import { copyToClipboard } from '../../../root-helpers/utils' | 9 | import { copyToClipboard } from '../../../root-helpers/utils' |
10 | import { ResolverData } from './about-instance.resolver' | 10 | import { ResolverData } from './about-instance.resolver' |
11 | 11 | ||
@@ -35,16 +35,17 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
35 | languages: string[] = [] | 35 | languages: string[] = [] |
36 | categories: string[] = [] | 36 | categories: string[] = [] |
37 | 37 | ||
38 | serverConfig: ServerConfig | ||
39 | |||
40 | initialized = false | 38 | initialized = false |
41 | 39 | ||
40 | private serverConfig: HTMLServerConfig | ||
41 | |||
42 | private lastScrollHash: string | 42 | private lastScrollHash: string |
43 | 43 | ||
44 | constructor ( | 44 | constructor ( |
45 | private viewportScroller: ViewportScroller, | 45 | private viewportScroller: ViewportScroller, |
46 | private route: ActivatedRoute, | 46 | private route: ActivatedRoute, |
47 | private notifier: Notifier, | 47 | private notifier: Notifier, |
48 | private serverService: ServerService, | ||
48 | private instanceService: InstanceService | 49 | private instanceService: InstanceService |
49 | ) {} | 50 | ) {} |
50 | 51 | ||
@@ -61,9 +62,9 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
61 | } | 62 | } |
62 | 63 | ||
63 | async ngOnInit () { | 64 | async ngOnInit () { |
64 | const { about, languages, categories, serverConfig }: ResolverData = this.route.snapshot.data.instanceData | 65 | const { about, languages, categories }: ResolverData = this.route.snapshot.data.instanceData |
65 | 66 | ||
66 | this.serverConfig = serverConfig | 67 | this.serverConfig = this.serverService.getHTMLConfig() |
67 | 68 | ||
68 | this.languages = languages | 69 | this.languages = languages |
69 | this.categories = categories | 70 | this.categories = categories |