diff options
Diffstat (limited to 'client/angular/app/search.component.ts')
-rw-r--r-- | client/angular/app/search.component.ts | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/client/angular/app/search.component.ts b/client/angular/app/search.component.ts index 3e8db70c0..e21b91fce 100644 --- a/client/angular/app/search.component.ts +++ b/client/angular/app/search.component.ts | |||
@@ -1,6 +1,4 @@ | |||
1 | import { Component, EventEmitter, Output } from '@angular/core'; | 1 | import { Component, EventEmitter, Output } from '@angular/core'; |
2 | import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router } from '@angular/router-deprecated'; | ||
3 | import { HTTP_PROVIDERS } from '@angular/http'; | ||
4 | 2 | ||
5 | import { DROPDOWN_DIRECTIVES} from 'ng2-bootstrap/components/dropdown'; | 3 | import { DROPDOWN_DIRECTIVES} from 'ng2-bootstrap/components/dropdown'; |
6 | 4 | ||
@@ -16,15 +14,15 @@ export class SearchComponent { | |||
16 | @Output() search: EventEmitter<Search> = new EventEmitter<Search>(); | 14 | @Output() search: EventEmitter<Search> = new EventEmitter<Search>(); |
17 | 15 | ||
18 | searchCriterias: Search = { | 16 | searchCriterias: Search = { |
19 | field: "name", | 17 | field: 'name', |
20 | value: "" | 18 | value: '' |
21 | } | 19 | }; |
22 | fieldChoices = { | 20 | fieldChoices = { |
23 | name: "Name", | 21 | name: 'Name', |
24 | author: "Author", | 22 | author: 'Author', |
25 | podUrl: "Pod Url", | 23 | podUrl: 'Pod Url', |
26 | magnetUri: "Magnet Uri" | 24 | magnetUri: 'Magnet Uri' |
27 | } | 25 | }; |
28 | 26 | ||
29 | get choiceKeys() { | 27 | get choiceKeys() { |
30 | return Object.keys(this.fieldChoices); | 28 | return Object.keys(this.fieldChoices); |
@@ -34,7 +32,7 @@ export class SearchComponent { | |||
34 | return this.fieldChoices[choiceKey]; | 32 | return this.fieldChoices[choiceKey]; |
35 | } | 33 | } |
36 | 34 | ||
37 | choose($event:MouseEvent, choice: SearchField){ | 35 | choose($event:MouseEvent, choice: SearchField) { |
38 | $event.preventDefault(); | 36 | $event.preventDefault(); |
39 | $event.stopPropagation(); | 37 | $event.stopPropagation(); |
40 | 38 | ||