aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/app/search.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-23 12:15:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-23 12:15:03 +0200
commitaff038cd784ab09a9f62b2e81816110e100ba7b8 (patch)
treef840355a06dbfe8f3868059a5515faf4d2998026 /client/angular/app/search.component.ts
parentcf20596c107eb0833259fa1098cc784267298a19 (diff)
downloadPeerTube-aff038cd784ab09a9f62b2e81816110e100ba7b8.tar.gz
PeerTube-aff038cd784ab09a9f62b2e81816110e100ba7b8.tar.zst
PeerTube-aff038cd784ab09a9f62b2e81816110e100ba7b8.zip
Lint the client
Diffstat (limited to 'client/angular/app/search.component.ts')
-rw-r--r--client/angular/app/search.component.ts20
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 @@
1import { Component, EventEmitter, Output } from '@angular/core'; 1import { Component, EventEmitter, Output } from '@angular/core';
2import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router } from '@angular/router-deprecated';
3import { HTTP_PROVIDERS } from '@angular/http';
4 2
5import { DROPDOWN_DIRECTIVES} from 'ng2-bootstrap/components/dropdown'; 3import { 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