Readding search field, and fixing search for non-mempool base module sites.

This commit is contained in:
softsimon
2021-08-14 14:58:58 +03:00
parent b3294369d4
commit 8d9a51a7c4
3 changed files with 60 additions and 9 deletions

View File

@@ -119,7 +119,7 @@ export class SearchFormComponent implements OnInit {
}
navigate(url: string, searchText: string) {
this.router.navigate([(this.network ? '/' + this.network : '') + url, searchText]);
this.router.navigate([(this.network && this.stateService.env.BASE_MODULE === 'mempool' ? '/' + this.network : '') + url, searchText]);
this.searchTriggered.emit();
this.searchForm.setValue({
searchText: '',