LP1904036 Un-check email notify allows save on cleared email
authorBill Erickson <berickxx@gmail.com>
Fri, 27 Aug 2021 15:45:06 +0000 (11:45 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +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/circ/patron/edit.component.html

index 31c16ae..c46961e 100644 (file)
     <div class="col-lg-3">
       <div class="form-check form-check-inline mr-2">
         <input class="form-check-input" type="checkbox" name="hold-notify-phone" 
-          id="hold-notify-phone" [(ngModel)]="holdNotifyTypes.phone"/>
+          id="hold-notify-phone" [(ngModel)]="holdNotifyTypes.phone"
+          (ngModelChange)="emitSaveState()"/>
         <label class="form-check-label" for="hold-notify-phone" i18n>Phone</label>
       </div>
       <div class="form-check form-check-inline mr-2">
         <input class="form-check-input" type="checkbox" name="hold-notify-email" 
-          id="hold-notify-email" [(ngModel)]="holdNotifyTypes.email"/>
+          id="hold-notify-email" [(ngModel)]="holdNotifyTypes.email"
+          (ngModelChange)="emitSaveState()"/>
         <label class="form-check-label" for="hold-notify-email" i18n>Email</label>
       </div>
       <div class="form-check form-check-inline mr-2" 
         *ngIf="context.settingsCache['sms.enable']">
         <input class="form-check-input" type="checkbox" name="hold-notify-sms" 
-          id="hold-notify-sms" [(ngModel)]="holdNotifyTypes.sms"/>
+          id="hold-notify-sms" [(ngModel)]="holdNotifyTypes.sms"
+          (ngModelChange)="emitSaveState()"/>
         <label class="form-check-label" for="hold-notify-sms" i18n>SMS</label>
       </div>
     </div>