mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-26 02:30:37 -06:00
Fix router on /
This commit is contained in:
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
Block a user