diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-24 23:00:58 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-24 23:00:58 +0200 |
commit | a99593ed9f3244e75f7db793ba6716754d664573 (patch) | |
tree | d17a2b5cda09bc0ec51ec102ec853e6584f3901a /client/angular/app/app.component.ts | |
parent | aff038cd784ab09a9f62b2e81816110e100ba7b8 (diff) | |
download | PeerTube-a99593ed9f3244e75f7db793ba6716754d664573.tar.gz PeerTube-a99593ed9f3244e75f7db793ba6716754d664573.tar.zst PeerTube-a99593ed9f3244e75f7db793ba6716754d664573.zip |
Make the sort/results bar less ugly
Diffstat (limited to 'client/angular/app/app.component.ts')
-rw-r--r-- | client/angular/app/app.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 { | |||
53 | constructor(private _friendsService: FriendsService, | 53 | constructor(private _friendsService: FriendsService, |
54 | private _authService: AuthService, | 54 | private _authService: AuthService, |
55 | private _router: Router | 55 | private _router: Router |
56 | |||
56 | ) { | 57 | ) { |
57 | this.isLoggedIn = this._authService.isLoggedIn(); | 58 | this.isLoggedIn = this._authService.isLoggedIn(); |
58 | 59 | ||
@@ -67,7 +68,11 @@ export class AppComponent { | |||
67 | 68 | ||
68 | onSearch(search: Search) { | 69 | onSearch(search: Search) { |
69 | if (search.value !== '') { | 70 | if (search.value !== '') { |
70 | this._router.navigate(['VideosList', { search: search.value, field: search.field }]); | 71 | const params = { |
72 | search: search.value, | ||
73 | field: search.field | ||
74 | }; | ||
75 | this._router.navigate(['VideosList', params]); | ||
71 | } else { | 76 | } else { |
72 | this._router.navigate(['VideosList']); | 77 | this._router.navigate(['VideosList']); |
73 | } | 78 | } |