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 | 8 |
1 files changed, 6 insertions, 2 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 e1501d7de..fc5214215 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts | |||
@@ -4,7 +4,7 @@ import { ActivatedRoute } from '@angular/router' | |||
4 | import { Notifier, ServerService } from '@app/core' | 4 | import { Notifier, ServerService } from '@app/core' |
5 | import { AboutHTML } from '@app/shared/shared-instance' | 5 | import { AboutHTML } from '@app/shared/shared-instance' |
6 | import { copyToClipboard } from '@root-helpers/utils' | 6 | import { copyToClipboard } from '@root-helpers/utils' |
7 | import { HTMLServerConfig } from '@shared/models/server' | 7 | import { HTMLServerConfig, ServerStats } from '@shared/models/server' |
8 | import { ResolverData } from './about-instance.resolver' | 8 | import { ResolverData } from './about-instance.resolver' |
9 | import { ContactAdminModalComponent } from './contact-admin-modal.component' | 9 | import { ContactAdminModalComponent } from './contact-admin-modal.component' |
10 | 10 | ||
@@ -26,6 +26,8 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
26 | 26 | ||
27 | initialized = false | 27 | initialized = false |
28 | 28 | ||
29 | serverStats: ServerStats | ||
30 | |||
29 | private serverConfig: HTMLServerConfig | 31 | private serverConfig: HTMLServerConfig |
30 | 32 | ||
31 | private lastScrollHash: string | 33 | private lastScrollHash: string |
@@ -50,7 +52,9 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
50 | } | 52 | } |
51 | 53 | ||
52 | ngOnInit () { | 54 | ngOnInit () { |
53 | const { about, languages, categories, aboutHTML, descriptionElement }: ResolverData = this.route.snapshot.data.instanceData | 55 | const { about, languages, categories, aboutHTML, descriptionElement, serverStats }: ResolverData = this.route.snapshot.data.instanceData |
56 | |||
57 | this.serverStats = serverStats | ||
54 | 58 | ||
55 | this.aboutHTML = aboutHTML | 59 | this.aboutHTML = aboutHTML |
56 | this.descriptionElement = descriptionElement | 60 | this.descriptionElement = descriptionElement |