From 592f882394e1d4c3682c79e48ce8624497443369 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 20 Oct 2026 10:06:40 -0700 Subject: [PATCH] Get rid of the x for the picker --- .../common/input/document-link/document-link.component.html | 2 +- .../common/input/document-link/document-link.component.ts | 3 +++ .../ocr-template-editor/ocr-template-editor.component.html | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.html b/src-ui/src/app/components/common/input/document-link/document-link.component.html index 4630422a9..1c7e1a88d 100644 --- a/src-ui/src/app/components/common/input/document-link/document-link.component.html +++ b/src-ui/src/app/components/common/input/document-link/document-link.component.html @@ -40,7 +40,7 @@ (change)="onChange(selectedDocumentIDs)">
- @if (!disabled) { + @if (!disabled && multiple) { } @if (document.title) { diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.ts b/src-ui/src/app/components/common/input/document-link/document-link.component.ts index fb8106d1d..717942da1 100644 --- a/src-ui/src/app/components/common/input/document-link/document-link.component.ts +++ b/src-ui/src/app/components/common/input/document-link/document-link.component.ts @@ -81,6 +81,9 @@ export class DocumentLinkComponent @Input() placeholder: string = $localize`Search for documents` + @Input() + multiple: boolean = true + /** * Parent for ng-select dropdown, needed to prevent close on click. */ diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index b4369cd3a..6ba926b57 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -163,6 +163,7 @@ [ngModel]="sampleDocumentIds" (ngModelChange)="setSampleDocument($event)" [minimal]="true" + [multiple]="false" placeholder="Search for a sample document" i18n-placeholder >