]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/moderation.component.ts
Add abuse messages management in my account
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / moderation.component.ts
CommitLineData
ba430d75 1import { Component, OnInit } from '@angular/core'
0a4cb95c 2import { ServerService } from '@app/core'
614d1ae9
C
3
4@Component({
5 templateUrl: './moderation.component.html',
94148c90 6 styleUrls: [ ]
614d1ae9 7})
ba430d75 8export class ModerationComponent implements OnInit {
5baee5fc 9 autoBlockVideosEnabled = false
7ccddd7b
JM
10
11 constructor (
7ccddd7b 12 private serverService: ServerService
ba430d75
C
13 ) { }
14
15 ngOnInit (): void {
16 this.serverService.getConfig()
5baee5fc 17 .subscribe(config => this.autoBlockVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled)
65b21c96 18 }
614d1ae9 19}