aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/app.component.ts4
-rw-r--r--client/src/app/shared/search/search.component.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 2a1486fb2..0cee6edbf 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -34,6 +34,10 @@ import { SearchService } from './shared'; // Temporary
34 { 34 {
35 path: '/videos/add', 35 path: '/videos/add',
36 component: VideoAddComponent 36 component: VideoAddComponent
37 },
38 {
39 path: '/',
40 component: VideoListComponent
37 } 41 }
38]) 42])
39 43
diff --git a/client/src/app/shared/search/search.component.ts b/client/src/app/shared/search/search.component.ts
index 2f89d83bf..9218850ed 100644
--- a/client/src/app/shared/search/search.component.ts
+++ b/client/src/app/shared/search/search.component.ts
@@ -52,7 +52,7 @@ export class SearchComponent implements OnInit {
52 52
53 this.searchCriterias.field = choice; 53 this.searchCriterias.field = choice;
54 54
55 if (this.searchCriterias.value !== '') { 55 if (this.searchCriterias.value) {
56 this.doSearch(); 56 this.doSearch();
57 } 57 }
58 } 58 }