Fix router on /
authorChocobozzz <florian.bigard@gmail.com>
Fri, 10 Jun 2016 20:08:39 +0000 (22:08 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 10 Jun 2016 20:08:39 +0000 (22:08 +0200)
client/src/app/app.component.ts
client/src/app/shared/search/search.component.ts

index 2a1486fb24a05aefc751d4e7f9bcd37867135f4b..0cee6edbf7cfb904924b83adcbc0522cb29f98dd 100644 (file)
@@ -34,6 +34,10 @@ import { SearchService } from './shared'; // Temporary
   {
     path: '/videos/add',
     component: VideoAddComponent
+  },
+  {
+    path: '/',
+    component: VideoListComponent
   }
 ])
 
index 2f89d83bf4a7b4312e78a1355d8a8c5ed4aa15ba..9218850ed7e5668eee0de1750971380a924fdbc3 100644 (file)
@@ -52,7 +52,7 @@ export class SearchComponent implements OnInit {
 
     this.searchCriterias.field = choice;
 
-    if (this.searchCriterias.value !== '') {
+    if (this.searchCriterias.value) {
       this.doSearch();
     }
   }