aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-history
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-19 09:24:29 +0200
committerChocobozzz <me@florianbigard.com>2021-08-25 11:24:11 +0200
commitdd24f1bb0a4b252e5342b251ba36853364da7b8e (patch)
tree41a9506d07413f056fb90425705e258f96fdc77d /client/src/app/+my-library/my-history
parent2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8 (diff)
downloadPeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.tar.gz
PeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.tar.zst
PeerTube-dd24f1bb0a4b252e5342b251ba36853364da7b8e.zip
Add video filters to common video pages
Diffstat (limited to 'client/src/app/+my-library/my-history')
-rw-r--r--client/src/app/+my-library/my-history/my-history.component.html4
-rw-r--r--client/src/app/+my-library/my-history/my-history.component.ts6
2 files changed, 6 insertions, 4 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 45ca37e0d..8e564cf93 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="search-wrapper"> 7 <div class="search-wrapper">
8 <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter> 8 <my-advanced-input-filter [emitOnInit]="false" (search)="onSearch($event)"></my-advanced-input-filter>
9 </div> 9 </div>
10 10
11 <div class="history-switch"> 11 <div class="history-switch">
@@ -26,8 +26,8 @@
26 [titlePage]="titlePage" 26 [titlePage]="titlePage"
27 [getVideosObservableFunction]="getVideosObservableFunction" 27 [getVideosObservableFunction]="getVideosObservableFunction"
28 [user]="user" 28 [user]="user"
29 [loadOnInit]="false"
30 i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet." 29 i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet."
31 [enableSelection]="false" 30 [enableSelection]="false"
31 [disabled]="disabled"
32 #videosSelection 32 #videosSelection
33></my-videos-selection> 33></my-videos-selection>
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 a72d22e1c..95cfaee41 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
@@ -50,6 +50,8 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook {
50 videos: Video[] = [] 50 videos: Video[] = []
51 search: string 51 search: string
52 52
53 disabled = false
54
53 constructor ( 55 constructor (
54 protected router: Router, 56 protected router: Router,
55 protected serverService: ServerService, 57 protected serverService: ServerService,
@@ -74,11 +76,11 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook {
74 } 76 }
75 77
76 disableForReuse () { 78 disableForReuse () {
77 this.videosSelection.disableForReuse() 79 this.disabled = true
78 } 80 }
79 81
80 enabledForReuse () { 82 enabledForReuse () {
81 this.videosSelection.enabledForReuse() 83 this.disabled = false
82 } 84 }
83 85
84 reloadData () { 86 reloadData () {