Browse Source

Minor fix

pull/65/head
Sebastian Stehle 9 years ago
parent
commit
f3ad7897ce
  1. 1
      src/Squidex/app/features/administration/administration-area.component.ts
  2. 4
      src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html
  3. 6
      src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts
  4. 4
      src/Squidex/app/shared/components/app-form.component.html

1
src/Squidex/app/features/administration/administration-area.component.ts

@ -13,5 +13,4 @@ import { Component } from '@angular/core';
templateUrl: './administration-area.component.html'
})
export class AdministrationAreaComponent {
}

4
src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html

@ -1,7 +1,7 @@
<form [formGroup]="createForm" (ngSubmit)="createSchema()">
<div *ngIf="creationError">
<div *ngIf="createFormError">
<div class="form-error">
{{creationError}}
{{createFormError}}
</div>
</div>

6
src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts

@ -42,7 +42,7 @@ export class SchemaFormComponent {
public showImport = false;
public creationError = '';
public createFormError = '';
public createFormSubmitted = false;
public createForm: FormGroup =
this.formBuilder.group({
@ -97,13 +97,13 @@ export class SchemaFormComponent {
this.created.emit(this.createSchemaDto(dto.id, requestDto.properties || {}, schemaName, schemaVersion));
}, error => {
this.createForm.enable();
this.creationError = error.displayMessage;
this.createFormError = error.displayMessage;
});
}
}
private reset() {
this.creationError = '';
this.createFormError = '';
this.createForm.reset();
this.createFormSubmitted = false;
}

4
src/Squidex/app/shared/components/app-form.component.html

@ -1,7 +1,7 @@
<form [formGroup]="createForm" (ngSubmit)="createApp()">
<div *ngIf="creationError">
<div *ngIf="createFormError">
<div class="form-error">
{{creationError}}
{{createFormError}}
</div>
</div>

Loading…
Cancel
Save