Get rid of the x for the picker

This commit is contained in:
shamoon committed 2026-10-20 10:06:40 -07:00
1 parent 29ea9cec66
commit 592f882394
3 files changed
+5 -1

No files matched your search

@@ -40,7 +40,7 @@
(change)="onChange(selectedDocumentIDs)">
<ng-template ng-label-tmp let-document="item">
<div class="d-flex align-items-center">
@if (!disabled) {
@if (!disabled && multiple) {
<button class="btn p-0 lh-1" (click)="unselect(document)" (mousedown)="$event.stopImmediatePropagation()" type="button" title="Remove link" i18n-title><i-bs name="x"></i-bs></button>
}
@if (document.title) {
@@ -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.
*/
@@ -163,6 +163,7 @@
[ngModel]="sampleDocumentIds"
(ngModelChange)="setSampleDocument($event)"
[minimal]="true"
[multiple]="false"
placeholder="Search for a sample document"
i18n-placeholder
></pngx-input-document-link>