support type as override to search in listBlocks
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 9 Jun 2020 14:23:16 +0000 (16:23 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Wed, 10 Jun 2020 19:12:09 +0000 (21:12 +0200)
client/src/app/shared/video-block/video-block.service.ts

index 31ccc84eadce9fecfaf39f90344ab756796677c0..d0673ddba8d9384cffb0f8ee56bf7a0119d71099 100644 (file)
@@ -43,6 +43,7 @@ export class VideoBlockService {
 
       params = this.restService.addObjectParams(params, filters)
     }
+    if (type) params = params.append('type', type.toString())
 
     return this.authHttp.get<ResultList<VideoBlacklist>>(VideoBlockService.BASE_VIDEOS_URL + 'blacklist', { params })
                .pipe(