diff options
Diffstat (limited to 'client/src/app/+my-library/my-history')
-rw-r--r-- | client/src/app/+my-library/my-history/my-history.component.html | 2 | ||||
-rw-r--r-- | client/src/app/+my-library/my-history/my-history.component.ts | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/+my-library/my-history/my-history.component.html b/client/src/app/+my-library/my-history/my-history.component.html index cff46a41d..05e016e55 100644 --- a/client/src/app/+my-library/my-history/my-history.component.html +++ b/client/src/app/+my-library/my-history/my-history.component.html | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | <div class="top-buttons"> | 6 | <div class="top-buttons"> |
7 | <div class="history-switch"> | 7 | <div class="history-switch"> |
8 | <p-inputSwitch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></p-inputSwitch> | 8 | <my-input-switch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></my-input-switch> |
9 | <label i18n>Video history</label> | 9 | <label i18n>Video history</label> |
10 | </div> | 10 | </div> |
11 | 11 | ||
diff --git a/client/src/app/+my-library/my-history/my-history.component.ts b/client/src/app/+my-library/my-history/my-history.component.ts index e11f05c47..4ba95124d 100644 --- a/client/src/app/+my-library/my-history/my-history.component.ts +++ b/client/src/app/+my-library/my-history/my-history.component.ts | |||
@@ -47,7 +47,11 @@ export class MyHistoryComponent extends AbstractVideoList implements OnInit, OnD | |||
47 | ngOnInit () { | 47 | ngOnInit () { |
48 | super.ngOnInit() | 48 | super.ngOnInit() |
49 | 49 | ||
50 | this.videosHistoryEnabled = this.authService.getUser().videosHistoryEnabled | 50 | this.authService.userInformationLoaded |
51 | .subscribe(() => { | ||
52 | this.videosHistoryEnabled = this.authService.getUser().videosHistoryEnabled | ||
53 | }) | ||
54 | |||
51 | } | 55 | } |
52 | 56 | ||
53 | ngOnDestroy () { | 57 | ngOnDestroy () { |