diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-21 15:44:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-21 15:51:28 +0100 |
commit | c8000975d361fae166a6ebecac5005238e14d4c9 (patch) | |
tree | 67d7da38abc6c4d9ceb4d120088d499309f69e30 /client/src/app/+about/about-instance/about-instance.component.ts | |
parent | e359e88b08476041c3c52db02fb3ca4e5ee296ea (diff) | |
download | PeerTube-c8000975d361fae166a6ebecac5005238e14d4c9.tar.gz PeerTube-c8000975d361fae166a6ebecac5005238e14d4c9.tar.zst PeerTube-c8000975d361fae166a6ebecac5005238e14d4c9.zip |
Add NSFW info in about page
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 | 4 |
1 files changed, 4 insertions, 0 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 c9eab44ab..4a63f5e38 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts | |||
@@ -33,6 +33,10 @@ export class AboutInstanceComponent implements OnInit { | |||
33 | return this.serverService.getConfig().email.enabled && this.serverService.getConfig().contactForm.enabled | 33 | return this.serverService.getConfig().email.enabled && this.serverService.getConfig().contactForm.enabled |
34 | } | 34 | } |
35 | 35 | ||
36 | get isNSFW () { | ||
37 | return this.serverService.getConfig().instance.isNSFW | ||
38 | } | ||
39 | |||
36 | ngOnInit () { | 40 | ngOnInit () { |
37 | this.instanceService.getAbout() | 41 | this.instanceService.getAbout() |
38 | .subscribe( | 42 | .subscribe( |