From dd24f1bb0a4b252e5342b251ba36853364da7b8e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Aug 2021 09:24:29 +0200 Subject: Add video filters to common video pages --- client/src/app/+my-library/my-history/my-history.component.html | 4 ++-- client/src/app/+my-library/my-history/my-history.component.ts | 6 ++++-- .../+my-library/my-subscriptions/my-subscriptions.component.html | 2 +- .../my-video-playlists/my-video-playlist-elements.component.html | 2 +- .../my-video-playlists/my-video-playlists.component.html | 2 +- client/src/app/+my-library/my-videos/my-videos.component.html | 4 ++-- client/src/app/+my-library/my-videos/my-videos.component.ts | 6 ++++-- 7 files changed, 15 insertions(+), 11 deletions(-) (limited to 'client/src/app/+my-library') 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 @@
- +
@@ -26,8 +26,8 @@ [titlePage]="titlePage" [getVideosObservableFunction]="getVideosObservableFunction" [user]="user" - [loadOnInit]="false" i18n-noResultMessage noResultMessage="You don't have any video in your watch history yet." [enableSelection]="false" + [disabled]="disabled" #videosSelection > 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 { videos: Video[] = [] search: string + disabled = false + constructor ( protected router: Router, protected serverService: ServerService, @@ -74,11 +76,11 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook { } disableForReuse () { - this.videosSelection.disableForReuse() + this.disabled = true } enabledForReuse () { - this.videosSelection.enabledForReuse() + this.disabled = false } reloadData () { diff --git a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html index 1bd459059..ca5ad794a 100644 --- a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html +++ b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html @@ -12,7 +12,7 @@
You don't have any subscription yet.
-
+
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html index e7e3c17b3..806dd6f48 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html @@ -34,7 +34,7 @@
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html index 309afcf13..7f5b8bbf4 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html @@ -12,7 +12,7 @@
-
+
- +