From 978c87e7f58b6673fe60f04f1767bc9e02ea4936 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Oct 2021 09:05:43 +0200 Subject: Add channel filters for my videos/followers --- .../src/app/+my-library/my-follows/my-followers.component.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'client/src/app/+my-library/my-follows') 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 413d524df..4a72b983f 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 @@ -37,12 +37,19 @@ export class MyFollowersComponent implements OnInit { } this.auth.userInformationLoaded.subscribe(() => { - this.inputFilters = this.auth.getUser().videoChannels.map(c => { + const channelFilters = this.auth.getUser().videoChannels.map(c => { return { queryParams: { search: 'channel:' + c.name }, - label: $localize`Followers of ${c.name}` + label: c.name } }) + + this.inputFilters = [ + { + title: $localize`Channel filters`, + children: channelFilters + } + ] }) } -- cgit v1.2.3