Merged PR 949: #1967 WK Notification Channel Dont Tick SMS Checkbox if Email and Mobile Numb...

#1967 WK Notification Channel Dont Tick SMS Checkbox if Email and Mobile Number exist
This commit is contained in:
Nino Righi
2021-11-09 15:32:26 +00:00
committed by Andreas Schickinger
parent 963aaa974e
commit f477411667

View File

@@ -2,7 +2,10 @@
<ui-checkbox [ngModel]="ncs.hasEmail && (ncs.notificationChannelEmail$ | async)" (ngModelChange)="check($event, 'email')">
E-Mail
</ui-checkbox>
<ui-checkbox [ngModel]="ncs.hasMobile && (ncs.notificationChannelMobile$ | async)" (ngModelChange)="check($event, 'sms')">
<ui-checkbox
[ngModel]="!(ncs.hasEmail && ncs.hasMobile) && ncs.hasMobile && (ncs.notificationChannelMobile$ | async)"
(ngModelChange)="check($event, 'sms')"
>
SMS
</ui-checkbox>
</div>