From 709798aa213e178dc003910800ef41311c82fd06 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 30 Mar 2021 12:30:27 -0400 Subject: [PATCH] LP1904036 org-select gets required option Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html | 1 + Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html b/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html index 02ed756494..89d7bb51b4 100644 --- a/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html +++ b/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html @@ -16,6 +16,7 @@ [name]="name" [placeholder]="placeholder" [disabled]="disabled" + [required]="required" [(ngModel)]="selected" [ngbTypeahead]="filter" [resultTemplate]="displayTemplate" diff --git a/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts b/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts index 352cb7ef80..6a8bd9eea0 100644 --- a/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts +++ b/Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts @@ -89,6 +89,8 @@ export class OrgSelectComponent implements OnInit { @Input() readOnly = false; + @Input() required = false; + // List of org unit IDs to exclude from the selector hidden: number[] = []; @Input() set hideOrgs(ids: number[]) { -- 2.11.0