From e06a98da37b2a773fbdae3cbb350650977eae435 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:14:37 -0700 Subject: [PATCH] Update not found text, support create field from select --- .../custom-fields-dropdown.component.html | 2 ++ .../custom-fields-dropdown.component.spec.ts | 10 ++++++++++ .../custom-fields-dropdown.component.ts | 7 ++++++- .../components/common/input/check/check.component.html | 2 +- .../common/input/select/select.component.html | 1 + .../components/common/input/select/select.component.ts | 3 +++ 6 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html index c324efd8b..7d4881a77 100644 --- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html +++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html @@ -13,6 +13,8 @@ bindLabel="name" [(ngModel)]="field" [placeholder]="placeholderText" + [notFoundText]="notFoundText" + (createNew)="createField($event)" bindValue="id"> -
+
diff --git a/src-ui/src/app/components/common/input/select/select.component.html b/src-ui/src/app/components/common/input/select/select.component.html index 08cbfc9d7..56e256bb4 100644 --- a/src-ui/src/app/components/common/input/select/select.component.html +++ b/src-ui/src/app/components/common/input/select/select.component.html @@ -21,6 +21,7 @@ addTagText="Add item" i18n-addTagText="Used for both types, correspondents, storage paths" [placeholder]="placeholder" + [notFoundText]="notFoundText" [multiple]="multiple" [bindLabel]="bindLabel" bindValue="id" diff --git a/src-ui/src/app/components/common/input/select/select.component.ts b/src-ui/src/app/components/common/input/select/select.component.ts index 437fc60d2..fafedee71 100644 --- a/src-ui/src/app/components/common/input/select/select.component.ts +++ b/src-ui/src/app/components/common/input/select/select.component.ts @@ -88,6 +88,9 @@ export class SelectComponent extends AbstractInputComponent { @Input() showFilter: boolean = false + @Input() + notFoundText: string = $localize`No items found` + @Output() createNew = new EventEmitter()