]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/video-block-validators.service.ts
rename blacklist to block/blocklist, merge block and auto-block views
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / video-block-validators.service.ts
similarity index 52%
rename from client/src/app/shared/forms/form-validators/video-blacklist-validators.service.ts
rename to client/src/app/shared/forms/form-validators/video-block-validators.service.ts
index 07d1f264a8884a5c44e5f615b9a6d50ff7f89822..dc82577614a6556429a3b7950492692b4354518b 100644 (file)
@@ -4,15 +4,15 @@ import { Injectable } from '@angular/core'
 import { BuildFormValidator } from '@app/shared'
 
 @Injectable()
-export class VideoBlacklistValidatorsService {
-  readonly VIDEO_BLACKLIST_REASON: BuildFormValidator
+export class VideoBlockValidatorsService {
+  readonly VIDEO_BLOCK_REASON: BuildFormValidator
 
   constructor (private i18n: I18n) {
-    this.VIDEO_BLACKLIST_REASON = {
+    this.VIDEO_BLOCK_REASON = {
       VALIDATORS: [ Validators.minLength(2), Validators.maxLength(300) ],
       MESSAGES: {
-        'minlength': this.i18n('Blacklist reason must be at least 2 characters long.'),
-        'maxlength': this.i18n('Blacklist reason cannot be more than 300 characters long.')
+        'minlength': this.i18n('Block reason must be at least 2 characters long.'),
+        'maxlength': this.i18n('Block reason cannot be more than 300 characters long.')
       }
     }
   }