Browse Source

Build fix

pull/104/head
Sebastian Stehle 9 years ago
parent
commit
a942ac695f
  1. 2
      src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts
  2. 5
      src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts

2
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;
}
}

5
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;
}
}
Loading…
Cancel
Save