diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-18 11:32:37 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-18 11:35:51 +0100 |
commit | 276d96529529621d5f70473990095495f2743c29 (patch) | |
tree | 9fc62fc44dce05302215b10da13789ce89c9ee04 /client/src/app/+my-account/my-account-history/my-account-history.component.html | |
parent | 80bfd33c0bf910e2cfdd3270b14ba9eddd90e2e8 (diff) | |
download | PeerTube-276d96529529621d5f70473990095495f2743c29.tar.gz PeerTube-276d96529529621d5f70473990095495f2743c29.tar.zst PeerTube-276d96529529621d5f70473990095495f2743c29.zip |
Add ability to disable and clear history
Diffstat (limited to 'client/src/app/+my-account/my-account-history/my-account-history.component.html')
-rw-r--r-- | client/src/app/+my-account/my-account-history/my-account-history.component.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/client/src/app/+my-account/my-account-history/my-account-history.component.html b/client/src/app/+my-account/my-account-history/my-account-history.component.html index 653b33f89..d42af37d4 100644 --- a/client/src/app/+my-account/my-account-history/my-account-history.component.html +++ b/client/src/app/+my-account/my-account-history/my-account-history.component.html | |||
@@ -1,4 +1,16 @@ | |||
1 | <div i18n *ngIf="pagination.totalItems === 0">You don't have history yet.</div> | 1 | <div class="top-buttons"> |
2 | <div class="history-switch"> | ||
3 | <p-inputSwitch [(ngModel)]="videosHistoryEnabled" (ngModelChange)="onVideosHistoryChange()"></p-inputSwitch> | ||
4 | <label i18n>History enabled</label> | ||
5 | </div> | ||
6 | |||
7 | <div class="delete-history"> | ||
8 | <button (click)="deleteHistory()" i18n>Delete history</button> | ||
9 | </div> | ||
10 | </div> | ||
11 | |||
12 | |||
13 | <div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have videos history yet.</div> | ||
2 | 14 | ||
3 | <div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" class="videos" #videosElement> | 15 | <div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" class="videos" #videosElement> |
4 | <div *ngFor="let videos of videoPages;" class="videos-page"> | 16 | <div *ngFor="let videos of videoPages;" class="videos-page"> |