Force form validation in configuration
authorChocobozzz <me@florianbigard.com>
Fri, 23 Mar 2018 08:31:42 +0000 (09:31 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 23 Mar 2018 08:31:42 +0000 (09:31 +0100)
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts

index 9ab8b08d0fdc2f5ab9787da17129e235630ecd8a..d73ee71e4513c4bcba7629d175da1549030b8138 100644 (file)
@@ -123,6 +123,8 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
           this.oldCustomJavascript = this.customConfig.instance.customizations.javascript
 
           this.updateForm()
+          // Force form validation
+          this.forceCheck()
         },
 
         err => this.notificationsService.error('Error', err.message)