]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/+admin/moderation/moderation.component.ts
Fix broadcast message level
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / moderation.component.ts
... / ...
CommitLineData
1import { Component, OnInit } from '@angular/core'
2import { ServerService } from '@app/core'
3
4@Component({
5 templateUrl: './moderation.component.html',
6 styleUrls: [ ]
7})
8export 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}