diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:49:18 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:49:18 +0200 |
commit | 4fd8aa327004b27530fd96bdde5df60e6745a1f6 (patch) | |
tree | e3b21282c641d50ea62e227c6ce3e7e740fec860 /client/app/app.component.ts | |
parent | ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd (diff) | |
download | PeerTube-4fd8aa327004b27530fd96bdde5df60e6745a1f6.tar.gz PeerTube-4fd8aa327004b27530fd96bdde5df60e6745a1f6.tar.zst PeerTube-4fd8aa327004b27530fd96bdde5df60e6745a1f6.zip |
Alphabetical
Diffstat (limited to 'client/app/app.component.ts')
-rw-r--r-- | client/app/app.component.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/app/app.component.ts b/client/app/app.component.ts index 20c8c8724..965848105 100644 --- a/client/app/app.component.ts +++ b/client/app/app.component.ts | |||
@@ -49,13 +49,13 @@ import { | |||
49 | }) | 49 | }) |
50 | 50 | ||
51 | export class AppComponent { | 51 | export class AppComponent { |
52 | isLoggedIn: boolean; | ||
53 | search_field: string = name; | ||
54 | choices = []; | 52 | choices = []; |
53 | isLoggedIn: boolean; | ||
55 | 54 | ||
56 | constructor(private friendService: FriendService, | 55 | constructor( |
57 | private authService: AuthService, | 56 | private authService: AuthService, |
58 | private router: Router | 57 | private friendService: FriendService, |
58 | private router: Router | ||
59 | ) { | 59 | ) { |
60 | this.isLoggedIn = this.authService.isLoggedIn(); | 60 | this.isLoggedIn = this.authService.isLoggedIn(); |
61 | 61 | ||
@@ -71,8 +71,8 @@ export class AppComponent { | |||
71 | onSearch(search: Search) { | 71 | onSearch(search: Search) { |
72 | if (search.value !== '') { | 72 | if (search.value !== '') { |
73 | const params = { | 73 | const params = { |
74 | search: search.value, | 74 | field: search.field, |
75 | field: search.field | 75 | search: search.value |
76 | }; | 76 | }; |
77 | this.router.navigate(['VideosList', params]); | 77 | this.router.navigate(['VideosList', params]); |
78 | } else { | 78 | } else { |
@@ -100,7 +100,7 @@ export class AppComponent { | |||
100 | quitFriends() { | 100 | quitFriends() { |
101 | this.friendService.quitFriends().subscribe( | 101 | this.friendService.quitFriends().subscribe( |
102 | status => { | 102 | status => { |
103 | alert('Quit friends!'); | 103 | alert('Quit friends!'); |
104 | }, | 104 | }, |
105 | error => alert(error) | 105 | error => alert(error) |
106 | ); | 106 | ); |