Fix status bar

This commit is contained in:
Geomitron
2023-12-22 22:41:51 -06:00
parent e504a62a60
commit f171571bc3
10 changed files with 64 additions and 162 deletions

View File

@@ -7,7 +7,11 @@
<div class="form-control w-full">
<input type="text" [formControl]="searchControl" placeholder="Search..." class="input input-bordered pr-14" />
</div>
<i class="bi bi-search -ml-9"></i>
@if (searchLoading) {
<span class="loading loading-spinner loading-sm self-center -ml-9"></span>
} @else {
<i class="bi bi-search -ml-9"></i>
}
</div>
<div class="flex">
<!-- Instrument Dropdown -->

View File

@@ -67,6 +67,9 @@ export class SearchBarComponent implements OnInit, AfterViewInit {
get instrument() {
return this.searchService.instrument.value
}
get searchLoading() {
return this.searchService.searchLoading
}
setInstrument(instrument: Instrument | null, event: MouseEvent) {
this.searchService.instrument.setValue(instrument)
if (event.target instanceof HTMLElement) {