Fix AutoThread
authorJorropo <jorropo.pgm@gmail.com>
Tue, 21 Aug 2018 12:09:53 +0000 (14:09 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Aug 2018 12:42:52 +0000 (14:42 +0200)
client/src/app/shared/forms/form-validators/custom-config-validators.service.ts

index 0c2489a9d8fb07de38450dc55dfcc19c0d7dadb2..882e39453c982afd864f0b5f108f48f32963583f 100644 (file)
@@ -72,10 +72,10 @@ export class CustomConfigValidatorsService {
     }
 
     this.TRANSCODING_THREADS = {
-      VALIDATORS: [ Validators.required, Validators.min(1) ],
+      VALIDATORS: [ Validators.required, Validators.min(0) ],
       MESSAGES: {
         'required': this.i18n('Transcoding threads is required.'),
-        'min': this.i18n('Transcoding threads must be greater than 1.')
+        'min': this.i18n('Transcoding threads must be greater or equal to 0.')
       }
     }
   }