diff options
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 5cab9e9df..545e37857 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -292,6 +292,9 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
292 | } | 292 | } |
293 | 293 | ||
294 | formValidated () { | 294 | formValidated () { |
295 | this.forceCheck() | ||
296 | if (!this.form.valid) return | ||
297 | |||
295 | const value: ComponentCustomConfig = this.form.getRawValue() | 298 | const value: ComponentCustomConfig = this.form.getRawValue() |
296 | 299 | ||
297 | forkJoin([ | 300 | forkJoin([ |
@@ -381,8 +384,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
381 | this.customConfig = { ...config, instanceCustomHomepage: homepage } | 384 | this.customConfig = { ...config, instanceCustomHomepage: homepage } |
382 | 385 | ||
383 | this.updateForm() | 386 | this.updateForm() |
384 | // Force form validation | 387 | this.markAllAsDirty() |
385 | this.forceCheck() | ||
386 | }, | 388 | }, |
387 | 389 | ||
388 | error: err => this.notifier.error(err.message) | 390 | error: err => this.notifier.error(err.message) |