]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/form-validators/video-ownership-change-validators.ts
Increase theme compatibility
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / form-validators / video-ownership-change-validators.ts
index e1a2df8a64f00b23d1c0494f166900a185346018..3e7823c4912a1d27fed9c1b581e2c0db97d7ccc3 100644 (file)
@@ -4,21 +4,21 @@ import { BuildFormValidator } from './form-validator.model'
 export const OWNERSHIP_CHANGE_CHANNEL_VALIDATOR: BuildFormValidator = {
   VALIDATORS: [ Validators.required ],
   MESSAGES: {
-    'required': $localize`The channel is required.`
+    required: $localize`The channel is required.`
   }
 }
 
 export const OWNERSHIP_CHANGE_USERNAME_VALIDATOR: BuildFormValidator = {
   VALIDATORS: [ Validators.required, localAccountValidator ],
   MESSAGES: {
-    'required': $localize`The username is required.`,
-    'localAccountOnly': $localize`You can only transfer ownership to a local account`
+    required: $localize`The username is required.`,
+    localAccountOnly: $localize`You can only transfer ownership to a local account`
   }
 }
 
 function localAccountValidator (control: AbstractControl): ValidationErrors {
   if (control.value.includes('@')) {
-    return { 'localAccountOnly': true }
+    return { localAccountOnly: true }
   }
 
   return null