aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-03 15:53:07 +0200
committerChocobozzz <me@florianbigard.com>2021-05-03 16:42:15 +0200
commit1a7d0887b6c22ca6539a15297fd4159d33d7dc48 (patch)
treea6a7c0c55ab0c8af74bb5df7baef13c10cc3ef64 /client/src/app/shared/shared-main
parent1de8740195bedd0d3d43acf69f443f27364e39ce (diff)
downloadPeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.tar.gz
PeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.tar.zst
PeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.zip
Refactor parseQueryStringFilter boolean handler
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/video/video.service.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts
index 668e51f73..7b17bd2ab 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -129,13 +129,7 @@ export class VideoService implements VideosProvider {
129 const filters = this.restService.parseQueryStringFilter(search, { 129 const filters = this.restService.parseQueryStringFilter(search, {
130 isLive: { 130 isLive: {
131 prefix: 'isLive:', 131 prefix: 'isLive:',
132 isBoolean: true, 132 isBoolean: true
133 handler: v => {
134 if (v === 'true') return v
135 if (v === 'false') return v
136
137 return undefined
138 }
139 } 133 }
140 }) 134 })
141 135