diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-10 22:08:39 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-10 22:08:39 +0200 |
commit | 70af9a0d4f09d0254ec1c9fd4dac6c428a320673 (patch) | |
tree | cd61e3e59c66a151c8c1f7c30a4670a01d8fe914 /client/src/app | |
parent | 641f98b2eeb155d2a93d76c9f83ad9eafa3aac1e (diff) | |
download | PeerTube-70af9a0d4f09d0254ec1c9fd4dac6c428a320673.tar.gz PeerTube-70af9a0d4f09d0254ec1c9fd4dac6c428a320673.tar.zst PeerTube-70af9a0d4f09d0254ec1c9fd4dac6c428a320673.zip |
Fix router on /
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/app.component.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/search/search.component.ts | 2 |
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 | } |