diff options
Diffstat (limited to 'client/src/app/+my-account')
2 files changed, 8 insertions, 4 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 93e294a96..75951006d 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 | |||
@@ -9,11 +9,17 @@ | |||
9 | <div>{{ labelNotifications[notificationType] }}</div> | 9 | <div>{{ labelNotifications[notificationType] }}</div> |
10 | 10 | ||
11 | <div> | 11 | <div> |
12 | <p-inputSwitch [(ngModel)]="webNotifications[notificationType]" (onChange)="updateWebSetting(notificationType, $event.checked)"></p-inputSwitch> | 12 | <my-input-switch |
13 | [(ngModel)]="webNotifications[notificationType]" | ||
14 | (ngModelChange)="updateWebSetting(notificationType, webNotifications[notificationType])" | ||
15 | ></my-input-switch> | ||
13 | </div> | 16 | </div> |
14 | 17 | ||
15 | <div *ngIf="emailEnabled"> | 18 | <div *ngIf="emailEnabled"> |
16 | <p-inputSwitch [(ngModel)]="emailNotifications[notificationType]" (onChange)="updateEmailSetting(notificationType, $event.checked)"></p-inputSwitch> | 19 | <my-input-switch |
20 | [(ngModel)]="emailNotifications[notificationType]" | ||
21 | (ngModelChange)="updateEmailSetting(notificationType, emailNotifications[notificationType])" | ||
22 | ></my-input-switch> | ||
17 | </div> | 23 | </div> |
18 | </div> | 24 | </div> |
19 | </ng-container> | 25 | </ng-container> |
diff --git a/client/src/app/+my-account/my-account.module.ts b/client/src/app/+my-account/my-account.module.ts index d3b6a9fa3..9e3fbcf65 100644 --- a/client/src/app/+my-account/my-account.module.ts +++ b/client/src/app/+my-account/my-account.module.ts | |||
@@ -1,5 +1,4 @@ | |||
1 | import { AutoCompleteModule } from 'primeng/autocomplete' | 1 | import { AutoCompleteModule } from 'primeng/autocomplete' |
2 | import { InputSwitchModule } from 'primeng/inputswitch' | ||
3 | import { TableModule } from 'primeng/table' | 2 | import { TableModule } from 'primeng/table' |
4 | import { DragDropModule } from '@angular/cdk/drag-drop' | 3 | import { DragDropModule } from '@angular/cdk/drag-drop' |
5 | import { NgModule } from '@angular/core' | 4 | import { NgModule } from '@angular/core' |
@@ -29,7 +28,6 @@ import { MyAccountComponent } from './my-account.component' | |||
29 | 28 | ||
30 | AutoCompleteModule, | 29 | AutoCompleteModule, |
31 | TableModule, | 30 | TableModule, |
32 | InputSwitchModule, | ||
33 | DragDropModule, | 31 | DragDropModule, |
34 | 32 | ||
35 | SharedMainModule, | 33 | SharedMainModule, |