aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html48
1 files changed, 26 insertions, 22 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
index 75951006d..c3cfe0314 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
@@ -1,25 +1,29 @@
1<div class="custom-row"> 1<div *ngIf="webNotifications">
2 <div i18n>Activities</div> 2 <ng-container *ngFor="let group of notificationSettingGroups">
3 <div i18n>Web</div> 3 <div class="header custom-row">
4 <div i18n *ngIf="emailEnabled">Email</div> 4 <div i18n>{{ group.label }}</div>
5</div> 5 <div i18n>Web</div>
6 <div i18n *ngIf="emailEnabled">Email</div>
7 </div>
6 8
7<ng-container *ngFor="let notificationType of notificationSettingKeys"> 9 <ng-container *ngFor="let notificationType of group.keys">
8 <div class="custom-row" *ngIf="hasUserRight(notificationType)"> 10 <div class="custom-row" *ngIf="hasUserRight(notificationType)">
9 <div>{{ labelNotifications[notificationType] }}</div> 11 <div>{{ labelNotifications[notificationType] }}</div>
10 12
11 <div> 13 <div>
12 <my-input-switch 14 <my-input-switch
13 [(ngModel)]="webNotifications[notificationType]" 15 [(ngModel)]="webNotifications[notificationType]"
14 (ngModelChange)="updateWebSetting(notificationType, webNotifications[notificationType])" 16 (ngModelChange)="updateWebSetting(notificationType, webNotifications[notificationType])"
15 ></my-input-switch> 17 ></my-input-switch>
16 </div> 18 </div>
17 19
18 <div *ngIf="emailEnabled"> 20 <div *ngIf="emailEnabled">
19 <my-input-switch 21 <my-input-switch
20 [(ngModel)]="emailNotifications[notificationType]" 22 [(ngModel)]="emailNotifications[notificationType]"
21 (ngModelChange)="updateEmailSetting(notificationType, emailNotifications[notificationType])" 23 (ngModelChange)="updateEmailSetting(notificationType, emailNotifications[notificationType])"
22 ></my-input-switch> 24 ></my-input-switch>
23 </div> 25 </div>
24 </div> 26 </div>
25</ng-container> 27 </ng-container>
28 </ng-container>
29</div>