mirror of https://github.com/Chocobozzz/PeerTube
Fix router on /
parent
641f98b2ee
commit
70af9a0d4f
|
@ -34,6 +34,10 @@ import { SearchService } from './shared'; // Temporary
|
||||||
{
|
{
|
||||||
path: '/videos/add',
|
path: '/videos/add',
|
||||||
component: VideoAddComponent
|
component: VideoAddComponent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
component: VideoListComponent
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ export class SearchComponent implements OnInit {
|
||||||
|
|
||||||
this.searchCriterias.field = choice;
|
this.searchCriterias.field = choice;
|
||||||
|
|
||||||
if (this.searchCriterias.value !== '') {
|
if (this.searchCriterias.value) {
|
||||||
this.doSearch();
|
this.doSearch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue