aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html
blob: 59422d682e301d90d7835fc5d6c95b038a115c69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="custom-row">
  <div i18n>Activities</div>
  <div i18n>Web</div>
  <div i18n *ngIf="emailEnabled">Email</div>
</div>

<div class="custom-row" *ngFor="let notificationType of notificationSettingKeys">
  <ng-container *ngIf="hasUserRight(notificationType)">
    <div>{{ labelNotifications[notificationType] }}</div>

    <div>
      <p-inputSwitch [(ngModel)]="webNotifications[notificationType]" (onChange)="updateWebSetting(notificationType, $event.checked)"></p-inputSwitch>
    </div>

    <div *ngIf="emailEnabled">
      <p-inputSwitch [(ngModel)]="emailNotifications[notificationType]" (onChange)="updateEmailSetting(notificationType, $event.checked)"></p-inputSwitch>
    </div>
  </ng-container>
</div>