From a99593ed9f3244e75f7db793ba6716754d664573 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 May 2016 23:00:58 +0200 Subject: Make the sort/results bar less ugly --- client/angular/app/app.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/angular/app') diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index 3a6df844a..722d0dca0 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts @@ -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']); } -- cgit v1.2.3