updated 'csvColumnHeader' property to not be required on add/edit file attribute dialog

This commit is contained in:
Valentin 2021-11-02 14:32:28 +02:00
parent b48a08c124
commit 2ad4dc38fe
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
/>
</div>
<div class="iqser-input-group required w-300">
<div class="iqser-input-group w-300">
<label translate="add-edit-file-attribute.form.column-header"></label>
<input
[placeholder]="'add-edit-file-attribute.form.column-header-placeholder' | translate"

View File

@ -31,7 +31,7 @@ export class AddEditFileAttributeDialogComponent extends BaseDialogComponent {
this.form = this._formBuilder.group({
label: [this.fileAttribute?.label, Validators.required],
csvColumnHeader: [this.fileAttribute?.csvColumnHeader, Validators.required],
csvColumnHeader: [this.fileAttribute?.csvColumnHeader],
type: [this.fileAttribute?.type || FileAttributeConfigTypes.TEXT, Validators.required],
readonly: [this.fileAttribute ? !this.fileAttribute.editable : false],
primaryAttribute: [this.fileAttribute?.primaryAttribute],