ActivityPub-federated video streaming platform using P2P directly in your web browser
Add quick filter for followers
Chocobozzz7e76cc380040
diff --git a/client/src/app/+my-library/my-follows/my-followers.component.html b/client/src/app/+my-library/my-follows/my-followers.component.htmlindex d2b2dccb61..eac750c865 100644--- a/client/src/app/+my-library/my-follows/my-followers.component.html+++ b/client/src/app/+my-library/my-follows/my-followers.component.html@@ -7,7 +7,7 @@</h1><div class="followers-header">- <my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>+ <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter></div><div class="no-results" i18n *ngIf="pagination.totalItems === 0">No follower found.</div>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.tsindex a7bbe6d992..413d524dfc 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@@ -2,6 +2,7 @@ import { Subject } from 'rxjs'import { Component, OnInit } from '@angular/core'import { ActivatedRoute } from '@angular/router'import { AuthService, ComponentPagination, Notifier } from '@app/core'+import { AdvancedInputFilter } from '@app/shared/shared-forms'import { UserSubscriptionService } from '@app/shared/shared-user-subscription'import { ActorFollow } from '@shared/models'@@ -21,6 +22,8 @@ export class MyFollowersComponent implements OnInit {onDataSubject = new Subject<any[]>()search: string+ inputFilters: AdvancedInputFilter[]+constructor (private route: ActivatedRoute,private auth: AuthService,@@ -32,6 +35,15 @@ export class MyFollowersComponent implements OnInit {if (this.route.snapshot.queryParams['search']) {this.search = this.route.snapshot.queryParams['search']}++ this.auth.userInformationLoaded.subscribe(() => {+ this.inputFilters = this.auth.getUser().videoChannels.map(c => {+ return {+ queryParams: { search: 'channel:' + c.name },+ label: $localize`Followers of ${c.name}`+ }+ })+ })}onNearOfBottom () {diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts b/client/src/app/shared/shared-forms/advanced-input-filter.component.tsindex 113219f48e..8315662b46 100644--- a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts+++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.ts@@ -55,7 +55,7 @@ export class AdvancedInputFilterComponent implements OnInit, AfterViewInit {}hasFilters () {- return this.filters.length !== 0+ return this.filters && this.filters.length !== 0}private scheduleSearchUpdate (value: string) {