]>
Commit | Line | Data |
---|---|---|
1 | import { Component, OnInit } from '@angular/core' | |
2 | import { ServerService } from '@app/core' | |
3 | ||
4 | @Component({ | |
5 | templateUrl: './moderation.component.html', | |
6 | styleUrls: [ ] | |
7 | }) | |
8 | export class ModerationComponent implements OnInit { | |
9 | autoBlockVideosEnabled = false | |
10 | ||
11 | constructor ( | |
12 | private serverService: ServerService | |
13 | ) { } | |
14 | ||
15 | ngOnInit (): void { | |
16 | this.serverService.getConfig() | |
17 | .subscribe(config => this.autoBlockVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled) | |
18 | } | |
19 | } |