2020-09-22 05:51:34 +07:00
< form [ formGroup ]=" searchForm " ( submit )=" searchForm . valid && search ()" novalidate >
< div class = "d-flex" >
< div class = "search-box-container mr-2" >
2022-09-28 14:14:08 +04:00
< input ( focus )=" focus $. next ($ any ($ event ). target . value )" ( click )=" click $. next ($ any ($ event ). target . value )" formControlName = "searchText" type = "text" class = "form-control" i18n-placeholder = "search-form.searchbar-placeholder" placeholder = "Explore the full Bitcoin ecosystem" >
2022-09-12 17:31:36 +02:00
< app-search-results # searchResults [ hidden ]=" dropdownHidden " [ results ]=" typeAhead $ | async " ( selectedResult )=" selectedResult ($ event )" ></ app-search-results >
2020-02-16 22:15:07 +07:00
</ div >
2020-02-17 20:39:20 +07:00
< div >
2022-08-30 11:46:37 +02:00
< button [ disabled ]=" isSearching " type = "submit" class = "btn btn-block btn-primary" >
< fa-icon * ngIf = "!(isTypeaheading$ | async) else searchLoading" [ icon ]="[' fas ', ' search ']" [ fixedWidth ]=" true " i18n-title = "search-form.search-title" title = "Search" ></ fa-icon >
</ button >
2020-02-16 22:15:07 +07:00
</ div >
2020-02-17 20:39:20 +07:00
</ div >
2020-12-02 04:19:33 +09:00
</ form >
2022-08-30 11:46:37 +02:00
< ng-template # searchLoading >
2022-08-30 22:36:13 +02:00
< div class = "spinner-border spinner-border-sm text-light" role = "status" aria-hidden = "true" ( click )=" searchForm . valid && search ()" ></ div >
2022-08-30 11:46:37 +02:00
</ ng-template >