]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
46f5e5d6b1273f97001930aba2247471ebbd65e1
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-settings / my-account-notification-preferences / my-account-notification-preferences.component.html
1 <div *ngIf="webNotifications">
2 <ng-container *ngFor="let group of notificationSettingGroups">
3 <div class="header notification-row">
4 <div i18n>{{ group.label }}</div>
5 <div i18n>Web</div>
6 <div i18n *ngIf="emailEnabled">Email</div>
7 </div>
8
9 <ng-container *ngFor="let notificationType of group.keys">
10 <div class="small notification-row" *ngIf="hasUserRight(notificationType)">
11 <div>{{ labelNotifications[notificationType] }}</div>
12
13 <div>
14 <my-input-switch
15 [(ngModel)]="webNotifications[notificationType]"
16 (ngModelChange)="updateWebSetting(notificationType, webNotifications[notificationType])"
17 ></my-input-switch>
18 </div>
19
20 <div *ngIf="emailEnabled">
21 <my-input-switch
22 [(ngModel)]="emailNotifications[notificationType]"
23 (ngModelChange)="updateEmailSetting(notificationType, emailNotifications[notificationType])"
24 ></my-input-switch>
25 </div>
26 </div>
27 </ng-container>
28 </ng-container>
29 </div>