diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-08 10:51:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-08 15:38:45 +0100 |
commit | 9129b7694d577322327ee79e9b9aa64deee92765 (patch) | |
tree | eb23b7a952048c3725f29109d38c36368976dec0 /client/src/app/shared | |
parent | 81b46cbc3417c46263c210c61b51a84a457abaaa (diff) | |
download | PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip |
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/form-validators/custom-config-validators.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/shared/form-validators/custom-config-validators.ts b/client/src/app/shared/form-validators/custom-config-validators.ts index 41b3cbba9..23f2156c2 100644 --- a/client/src/app/shared/form-validators/custom-config-validators.ts +++ b/client/src/app/shared/form-validators/custom-config-validators.ts | |||
@@ -65,6 +65,14 @@ export const TRANSCODING_THREADS_VALIDATOR: BuildFormValidator = { | |||
65 | } | 65 | } |
66 | } | 66 | } |
67 | 67 | ||
68 | export const CONCURRENCY_VALIDATOR: BuildFormValidator = { | ||
69 | VALIDATORS: [Validators.required, Validators.min(1)], | ||
70 | MESSAGES: { | ||
71 | 'required': $localize`Concurrency is required.`, | ||
72 | 'min': $localize`Concurrency should be greater or equal to 1.` | ||
73 | } | ||
74 | } | ||
75 | |||
68 | export const INDEX_URL_VALIDATOR: BuildFormValidator = { | 76 | export const INDEX_URL_VALIDATOR: BuildFormValidator = { |
69 | VALIDATORS: [Validators.pattern(/^https:\/\//)], | 77 | VALIDATORS: [Validators.pattern(/^https:\/\//)], |
70 | MESSAGES: { | 78 | MESSAGES: { |