]>
Commit | Line | Data |
---|---|---|
dc4e0ddb C |
1 | <div *ngIf="webNotifications"> |
2 | <ng-container *ngFor="let group of notificationSettingGroups"> | |
5b0ec7cd | 3 | <div class="header notification-row"> |
dc4e0ddb C |
4 | <div i18n>{{ group.label }}</div> |
5 | <div i18n>Web</div> | |
6 | <div i18n *ngIf="emailEnabled">Email</div> | |
7 | </div> | |
2f1548fd | 8 | |
dc4e0ddb | 9 | <ng-container *ngFor="let notificationType of group.keys"> |
5b0ec7cd | 10 | <div class="small notification-row" *ngIf="hasUserRight(notificationType)"> |
dc4e0ddb | 11 | <div>{{ labelNotifications[notificationType] }}</div> |
2f1548fd | 12 | |
dc4e0ddb C |
13 | <div> |
14 | <my-input-switch | |
f9735a9e | 15 | [inputName]="'web-notification-' + notificationType" |
dc4e0ddb C |
16 | [(ngModel)]="webNotifications[notificationType]" |
17 | (ngModelChange)="updateWebSetting(notificationType, webNotifications[notificationType])" | |
18 | ></my-input-switch> | |
19 | </div> | |
2f1548fd | 20 | |
dc4e0ddb C |
21 | <div *ngIf="emailEnabled"> |
22 | <my-input-switch | |
f9735a9e | 23 | [inputName]="'email-notification-' + notificationType" |
dc4e0ddb C |
24 | [(ngModel)]="emailNotifications[notificationType]" |
25 | (ngModelChange)="updateEmailSetting(notificationType, emailNotifications[notificationType])" | |
26 | ></my-input-switch> | |
27 | </div> | |
28 | </div> | |
29 | </ng-container> | |
30 | </ng-container> | |
31 | </div> |