From a942ac695f4aa6ce05ff2846eb01bbad5fe0841c Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 3 Sep 2017 00:00:08 +0200 Subject: [PATCH] Build fix --- .../schemas/pages/schema/schema-edit-form.component.ts | 2 +- .../schemas/pages/schema/schema-scripts-form.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts b/src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts index 3c023381c..fd9f28897 100644 --- a/src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts @@ -102,8 +102,8 @@ export class SchemaEditFormComponent extends ComponentBase implements OnInit { } private resetEditForm() { - this.editFormSubmitted = false; this.editForm.reset(); this.editForm.enable(); + this.editFormSubmitted = false; } } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts b/src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts index 3063bff03..b616edca5 100644 --- a/src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts @@ -45,6 +45,7 @@ export class SchemaScriptsFormComponent extends ComponentBase implements OnInit 'Unpublish' ]; + public editFormSubmitted = false; public editForm = this.formBuilder.group({ scriptQuery: '', @@ -72,6 +73,8 @@ export class SchemaScriptsFormComponent extends ComponentBase implements OnInit } public saveSchema() { + this.editFormSubmitted = true; + if (this.editForm.valid) { this.editForm.disable(); @@ -109,10 +112,12 @@ export class SchemaScriptsFormComponent extends ComponentBase implements OnInit private enableEditForm() { this.editForm.enable(); + this.editFormSubmitted = false; } private resetEditForm() { this.editForm.reset(); this.editForm.enable(); + this.editFormSubmitted = false; } } \ No newline at end of file