diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/custom-config-validators.service.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/custom-config-validators.service.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts b/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts index abcbca817..fdb19e06a 100644 --- a/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts +++ b/client/src/app/shared/forms/form-validators/custom-config-validators.service.ts | |||
@@ -14,6 +14,7 @@ export class CustomConfigValidatorsService { | |||
14 | readonly ADMIN_EMAIL: BuildFormValidator | 14 | readonly ADMIN_EMAIL: BuildFormValidator |
15 | readonly TRANSCODING_THREADS: BuildFormValidator | 15 | readonly TRANSCODING_THREADS: BuildFormValidator |
16 | readonly INDEX_URL: BuildFormValidator | 16 | readonly INDEX_URL: BuildFormValidator |
17 | readonly SEARCH_INDEX_URL: BuildFormValidator | ||
17 | 18 | ||
18 | constructor (private i18n: I18n) { | 19 | constructor (private i18n: I18n) { |
19 | this.INSTANCE_NAME = { | 20 | this.INSTANCE_NAME = { |
@@ -86,5 +87,12 @@ export class CustomConfigValidatorsService { | |||
86 | 'pattern': this.i18n('Index URL should be a URL') | 87 | 'pattern': this.i18n('Index URL should be a URL') |
87 | } | 88 | } |
88 | } | 89 | } |
90 | |||
91 | this.SEARCH_INDEX_URL = { | ||
92 | VALIDATORS: [ Validators.pattern(/^https?:\/\//) ], | ||
93 | MESSAGES: { | ||
94 | 'pattern': this.i18n('Search index URL should be a URL') | ||
95 | } | ||
96 | } | ||
89 | } | 97 | } |
90 | } | 98 | } |