From dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Nov 2021 14:23:55 +0100 Subject: Improve advanced input filter --- client/src/app/+my-library/my-follows/my-followers.component.ts | 2 +- client/src/app/+my-library/my-videos/my-videos.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+my-library') diff --git a/client/src/app/+my-library/my-follows/my-followers.component.ts b/client/src/app/+my-library/my-follows/my-followers.component.ts index 4a72b983f..0dd9bf6f5 100644 --- a/client/src/app/+my-library/my-follows/my-followers.component.ts +++ b/client/src/app/+my-library/my-follows/my-followers.component.ts @@ -39,7 +39,7 @@ export class MyFollowersComponent implements OnInit { this.auth.userInformationLoaded.subscribe(() => { const channelFilters = this.auth.getUser().videoChannels.map(c => { return { - queryParams: { search: 'channel:' + c.name }, + value: 'channel:' + c.name, label: c.name } }) diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index a117d0915..261e87f99 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts @@ -82,7 +82,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { const channelFilters = this.userChannels.map(c => { return { - queryParams: { search: 'channel:' + c.name }, + value: 'channel:' + c.name, label: c.name } }) @@ -92,7 +92,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { title: $localize`Advanced filters`, children: [ { - queryParams: { search: 'isLive:true' }, + value: 'isLive:true', label: $localize`Only live videos` } ] -- cgit v1.2.3