]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular/app/app.component.ts
Make the sort/results bar less ugly
[github/Chocobozzz/PeerTube.git] / client / angular / app / app.component.ts
index 3a6df844aa94f639c0019549e2042e26676fb07a..722d0dca03172c1830cedf9d575c6775d79ca906 100644 (file)
@@ -53,6 +53,7 @@ export class AppComponent {
   constructor(private _friendsService: FriendsService,
               private _authService: AuthService,
               private _router: Router
+
   ) {
     this.isLoggedIn = this._authService.isLoggedIn();
 
@@ -67,7 +68,11 @@ export class AppComponent {
 
   onSearch(search: Search) {
     if (search.value !== '') {
-      this._router.navigate(['VideosList', { search: search.value, field: search.field }]);
+      const params = {
+        search: search.value,
+        field: search.field
+      };
+      this._router.navigate(['VideosList', params]);
     } else {
       this._router.navigate(['VideosList']);
     }