aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/app/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-27 17:25:52 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-27 17:25:52 +0200
commitccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd (patch)
tree1765f48824be934e0be07e8a987a9513c58ba3da /client/app/shared
parent41a2aee38cf812510010da09de9bae53590ec119 (diff)
downloadPeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.gz
PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.zst
PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.zip
Do not prefix private attributes
Diffstat (limited to 'client/app/shared')
-rw-r--r--client/app/shared/search.component.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/app/shared/search.component.ts b/client/app/shared/search.component.ts
index 519810f9b..674518aba 100644
--- a/client/app/shared/search.component.ts
+++ b/client/app/shared/search.component.ts
@@ -12,12 +12,13 @@ import { SearchField } from './search-field.type';
12}) 12})
13 13
14export class SearchComponent { 14export class SearchComponent {
15 @Output() search: EventEmitter<Search> = new EventEmitter<Search>(); 15 @Output() search = new EventEmitter<Search>();
16 16
17 searchCriterias: Search = { 17 searchCriterias: Search = {
18 field: 'name', 18 field: 'name',
19 value: '' 19 value: ''
20 }; 20 };
21
21 fieldChoices = { 22 fieldChoices = {
22 name: 'Name', 23 name: 'Name',
23 author: 'Author', 24 author: 'Author',
@@ -29,18 +30,18 @@ export class SearchComponent {
29 return Object.keys(this.fieldChoices); 30 return Object.keys(this.fieldChoices);
30 } 31 }
31 32
32 getStringChoice(choiceKey: SearchField): string { 33 getStringChoice(choiceKey: SearchField) {
33 return this.fieldChoices[choiceKey]; 34 return this.fieldChoices[choiceKey];
34 } 35 }
35 36
36 choose($event:MouseEvent, choice: SearchField) { 37 choose($event: MouseEvent, choice: SearchField) {
37 $event.preventDefault(); 38 $event.preventDefault();
38 $event.stopPropagation(); 39 $event.stopPropagation();
39 40
40 this.searchCriterias.field = choice; 41 this.searchCriterias.field = choice;
41 } 42 }
42 43
43 doSearch(): void { 44 doSearch() {
44 this.search.emit(this.searchCriterias); 45 this.search.emit(this.searchCriterias);
45 } 46 }
46 47