diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-03 14:23:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-03 14:23:55 +0100 |
commit | dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709 (patch) | |
tree | b71ed391c2d8f99bff40dd3461010876de7bb23c /client/src/app/+my-library | |
parent | d324756edb836672f12284cd18e642a658b273d8 (diff) | |
download | PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.tar.gz PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.tar.zst PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.zip |
Improve advanced input filter
Diffstat (limited to 'client/src/app/+my-library')
-rw-r--r-- | client/src/app/+my-library/my-follows/my-followers.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/+my-library/my-videos/my-videos.component.ts | 4 |
2 files changed, 3 insertions, 3 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 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 { | |||
39 | this.auth.userInformationLoaded.subscribe(() => { | 39 | this.auth.userInformationLoaded.subscribe(() => { |
40 | const channelFilters = this.auth.getUser().videoChannels.map(c => { | 40 | const channelFilters = this.auth.getUser().videoChannels.map(c => { |
41 | return { | 41 | return { |
42 | queryParams: { search: 'channel:' + c.name }, | 42 | value: 'channel:' + c.name, |
43 | label: c.name | 43 | label: c.name |
44 | } | 44 | } |
45 | }) | 45 | }) |
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 { | |||
82 | 82 | ||
83 | const channelFilters = this.userChannels.map(c => { | 83 | const channelFilters = this.userChannels.map(c => { |
84 | return { | 84 | return { |
85 | queryParams: { search: 'channel:' + c.name }, | 85 | value: 'channel:' + c.name, |
86 | label: c.name | 86 | label: c.name |
87 | } | 87 | } |
88 | }) | 88 | }) |
@@ -92,7 +92,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
92 | title: $localize`Advanced filters`, | 92 | title: $localize`Advanced filters`, |
93 | children: [ | 93 | children: [ |
94 | { | 94 | { |
95 | queryParams: { search: 'isLive:true' }, | 95 | value: 'isLive:true', |
96 | label: $localize`Only live videos` | 96 | label: $localize`Only live videos` |
97 | } | 97 | } |
98 | ] | 98 | ] |