This patch ensures that the type of an item alert is
displayed when managing item alerts in the Angular item
attributes editor.
To test
-------
[1] Add an alert to an item.
[2] From the Angular Holdings View, chose 'Edit Item Alerts'
for that item. Note that the combobox for the existing
alert does not display a value.
[3] Open the item in the Item Attributes editor and click
the Item Alerts button. Again, note that the alert type
combobox does not display a value.
[4] Apply the patch and repeat steps 2 and 3. This time, the alert
type should be displayed.
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
*ngFor="let alert of copy.copy_alerts()">
<div class="col-lg-12 pb-2"><hr/></div>
<div class="col-lg-4">
- <eg-combobox [entries]="alertTypes" [startId]="alert.alert_type()"
+ <eg-combobox [entries]="alertTypes" [selectedId]="alert.alert_type()"
i18n-placeholder placeholder="Alert Type..."
- [required]="true"
+ [mandatory]="true"
(onChange)="alert.alert_type($event ? $event.id : null); alert.ischanged(true)">
</eg-combobox>
<div class="pl-2 pt-2" i18n>