From 8b1d7d11220fec3ddef8da75dbb086d43a1ac25a Mon Sep 17 00:00:00 2001 From: Sebastian Leidig Date: Thu, 14 Mar 2024 16:28:55 +0100 Subject: [PATCH] feat: create a new entity from entity-select fields closes #2213 --- .../admin-entity-field.component.html | 4 +- .../admin-entity-field.component.ts | 2 + .../edit-entity/entity-reference.stories.ts | 24 ++++++--- .../basic-autocomplete.component.html | 6 +-- .../entity-select.component.html | 1 + .../entity-select.component.spec.ts | 49 ++++++++++++++++++- .../entity-select/entity-select.component.ts | 49 ++++++++++++++++++- .../core/form-dialog/form-dialog.service.ts | 2 +- 8 files changed, 121 insertions(+), 16 deletions(-) diff --git a/src/app/core/admin/admin-entity-details/admin-entity-field/admin-entity-field.component.html b/src/app/core/admin/admin-entity-details/admin-entity-field/admin-entity-field.component.html index 424252bbce..518fba8625 100644 --- a/src/app/core/admin/admin-entity-details/admin-entity-field/admin-entity-field.component.html +++ b/src/app/core/admin/admin-entity-details/admin-entity-field/admin-entity-field.component.html @@ -99,7 +99,7 @@

Configure Field "{{ entitySchemaField.label }}"

[options]="typeAdditionalOptions" [optionToString]="objectToLabel" [valueMapper]="objectToValue" - [createOption]="createNewAdditionalOption" + [createOption]="createNewAdditionalOptionAsync" >