LP#1857910: (follow-up) fix styling of mandatory class and field comboboxes
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 20 May 2022 15:07:14 +0000 (11:07 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 20 May 2022 15:09:08 +0000 (11:09 -0400)
This patch uses the 'mandatory' synonym of 'required' in the custom comboboxes
for the IDL class and field.

There remains an issue: the fact that those fields are mandatory does
not propagate to the overall form validation.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/admin/local/field-documentation/field-documentation.component.html

index ebaafff..5f9902a 100644 (file)
 </eg-fm-record-editor>
 
 <ng-template #fieldClassSelector let-fieldentries="fieldentries" let-selected="selectedEntry">
-  <eg-combobox [allowFreeText]="true" [ngModel]="selected" required="true"
+  <eg-combobox [allowFreeText]="true" [ngModel]="selected" mandatory="true"
     [entries]="fieldentries" (onChange)="setClass($event)">
   </eg-combobox>
 </ng-template>
 
 <ng-template #fieldSelector
   let-entries="fields" let-selected="selectedEntry">
-  <eg-combobox [allowFreeText]="true" required="true"
+  <eg-combobox [allowFreeText]="true" [mandatory]="true"
     [entries]="fields" [ngModel]="selected"
     (ngModelChange)="setField($event)">
   </eg-combobox>