LP1904036 org-select gets required option
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Mar 2021 16:30:27 +0000 (12:30 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 6 Oct 2022 16:56:55 +0000 (12:56 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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[]) {