LP1904036 profile-select gets required option
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Mar 2021 16:30:37 +0000 (12:30 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 5 Apr 2021 14:19:31 +0000 (10:19 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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 f3ab924..16d9434 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} = {};