diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-19 11:12:01 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-19 15:25:41 +0100 |
commit | 4f926722ea6784ea389013378fd233f59077ec8a (patch) | |
tree | 36e92da1d8fc9394e1e36144f206e0427b7c02c3 /client/src/app/+my-library/my-history | |
parent | fce7fe04eed39e23e76717085e92118e963def81 (diff) | |
download | PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.gz PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.zst PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.zip |
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
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 () { |