]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix my videos search on refresh
authorChocobozzz <me@florianbigard.com>
Fri, 15 Oct 2021 08:30:39 +0000 (10:30 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 15 Oct 2021 08:30:39 +0000 (10:30 +0200)
client/src/app/+my-library/my-videos/my-videos.component.ts

index 72d28ced7385d25e7ae9d1bd0b312558a474c252..b1f3baf80148c9f0f5883b0aad8229e185927022 100644 (file)
@@ -75,6 +75,10 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
     this.buildActions()
 
     this.user = this.authService.getUser()
+
+    if (this.route.snapshot.queryParams['search']) {
+      this.search = this.route.snapshot.queryParams['search']
+    }
   }
 
   onSearch (search: string) {