diff options
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 | ); |