LP1904036 profile-select gets required option
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Mar 2021 16:30:37 +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/staff/share/patron/profile-select.component.html
Open-ILS/src/eg2/src/app/staff/share/patron/profile-select.component.ts

index 7784aa4..73de460 100644 (file)
@@ -1,5 +1,6 @@
 
 <eg-combobox #combobox 
+  [required]="required"
   [startId]="initialGroupId" [entries]="cboxEntries"
   (onChange)="propagateCboxChange($event)"
   i18n-placeholder placeholder="Profile Group">
index 82fc890..6ee2c04 100644 (file)
@@ -46,6 +46,8 @@ export class ProfileSelectComponent implements ControlValueAccessor, OnInit {
     // Set the initial value by ID
     @Input() initialGroupId: number;
 
+    @Input() required = false;
+
     cboxEntries: ComboboxEntry[] = [];
     profiles: {[id: number]: IdlObject} = {};