aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+admin/moderation/moderation.component.ts
blob: 85665ea4f9b23aa95f2a24b3e9af3693905d7446 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 
                                         


                                             
                
  
                                                    
                                

               
                                        



                                  
                                                                                                     
   
 
import { Component, OnInit } from '@angular/core'
import { ServerService } from '@app/core'

@Component({
  templateUrl: './moderation.component.html',
  styleUrls: [ ]
})
export class ModerationComponent implements OnInit {
  autoBlockVideosEnabled = false

  constructor (
    private serverService: ServerService
  ) { }

  ngOnInit (): void {
    this.serverService.getConfig()
      .subscribe(config => this.autoBlockVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled)
  }
}