aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-follows/my-followers.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-library/my-follows/my-followers.component.ts')
-rw-r--r--client/src/app/+my-library/my-follows/my-followers.component.ts12
1 files changed, 12 insertions, 0 deletions
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 a7bbe6d99..413d524df 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'
2import { Component, OnInit } from '@angular/core' 2import { Component, OnInit } from '@angular/core'
3import { ActivatedRoute } from '@angular/router' 3import { ActivatedRoute } from '@angular/router'
4import { AuthService, ComponentPagination, Notifier } from '@app/core' 4import { AuthService, ComponentPagination, Notifier } from '@app/core'
5import { AdvancedInputFilter } from '@app/shared/shared-forms'
5import { UserSubscriptionService } from '@app/shared/shared-user-subscription' 6import { UserSubscriptionService } from '@app/shared/shared-user-subscription'
6import { ActorFollow } from '@shared/models' 7import { ActorFollow } from '@shared/models'
7 8
@@ -21,6 +22,8 @@ export class MyFollowersComponent implements OnInit {
21 onDataSubject = new Subject<any[]>() 22 onDataSubject = new Subject<any[]>()
22 search: string 23 search: string
23 24
25 inputFilters: AdvancedInputFilter[]
26
24 constructor ( 27 constructor (
25 private route: ActivatedRoute, 28 private route: ActivatedRoute,
26 private auth: AuthService, 29 private auth: AuthService,
@@ -32,6 +35,15 @@ export class MyFollowersComponent implements OnInit {
32 if (this.route.snapshot.queryParams['search']) { 35 if (this.route.snapshot.queryParams['search']) {
33 this.search = this.route.snapshot.queryParams['search'] 36 this.search = this.route.snapshot.queryParams['search']
34 } 37 }
38
39 this.auth.userInformationLoaded.subscribe(() => {
40 this.inputFilters = this.auth.getUser().videoChannels.map(c => {
41 return {
42 queryParams: { search: 'channel:' + c.name },
43 label: $localize`Followers of ${c.name}`
44 }
45 })
46 })
35 } 47 }
36 48
37 onNearOfBottom () { 49 onNearOfBottom () {