]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/video-list/video-search.component.ts
Fix contributing guide concerning unit tests
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-list / video-search.component.ts
index 67857a0a9cf9fc53a3c743ea3246324b2a7fad54..46a9dd48efe90e83d1cb11fcf9c63281556d407a 100644 (file)
@@ -39,6 +39,7 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O
     this.subActivatedRoute = this.route.queryParams.subscribe(
       queryParams => {
         const querySearch = queryParams['search']
+
         if (!querySearch) return this.redirectService.redirectToHomepage()
         if (this.otherRouteParams.search === querySearch) return
 
@@ -60,4 +61,8 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O
     const newPagination = immutableAssign(this.pagination, { currentPage: page })
     return this.videoService.searchVideos(this.otherRouteParams.search, newPagination, this.sort)
   }
+
+  generateSyndicationList () {
+    throw new Error('Search does not support syndication.')
+  }
 }