LP1904036 org-select gets required option
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Mar 2021 16:30:27 +0000 (12:30 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:28 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts

index 02ed756..89d7bb5 100644 (file)
@@ -16,6 +16,7 @@
     [name]="name"
     [placeholder]="placeholder"
     [disabled]="disabled"
+    [required]="required"
     [(ngModel)]="selected" 
     [ngbTypeahead]="filter"
     [resultTemplate]="displayTemplate"
index 352cb7e..6a8bd9e 100644 (file)
@@ -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[]) {