From: Bill Erickson Date: Tue, 30 Mar 2021 16:30:27 +0000 (-0400) Subject: LP1904036 org-select gets required option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=709798aa213e178dc003910800ef41311c82fd06;p=evergreen%2Fmasslnc.git LP1904036 org-select gets required option Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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[]) {