]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/moderation/moderation.component.ts
rename blacklist to block/blocklist, merge block and auto-block views
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / moderation.component.ts
index 7744deb06ba2d768d6e332dfc7c34fa798627d98..d48305eedf5cf161208103eb3f06e679657396b6 100644 (file)
@@ -7,7 +7,7 @@ import { AuthService, ServerService } from '@app/core'
   styleUrls: [ './moderation.component.scss' ]
 })
 export class ModerationComponent implements OnInit {
-  autoBlacklistVideosEnabled = false
+  autoBlockVideosEnabled = false
 
   constructor (
     private auth: AuthService,
@@ -16,7 +16,7 @@ export class ModerationComponent implements OnInit {
 
   ngOnInit (): void {
     this.serverService.getConfig()
-      .subscribe(config => this.autoBlacklistVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled)
+      .subscribe(config => this.autoBlockVideosEnabled = config.autoBlacklist.videos.ofUsers.enabled)
 
   }
 
@@ -24,8 +24,8 @@ export class ModerationComponent implements OnInit {
     return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_ABUSES)
   }
 
-  hasVideoBlacklistRight () {
-    return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLACKLIST)
+  hasVideoBlocklistRight () {
+    return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLOCKS)
   }
 
   hasAccountsBlocklistRight () {