Skip to content

Commit

Permalink
indicator for sample search
Browse files Browse the repository at this point in the history
  • Loading branch information
barslmn committed Jan 26, 2025
1 parent 0753b06 commit 478060a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions canvas/templates/canvas/components/sample_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
hx-trigger="input changed delay:500ms, searchSamples from:document"
hx-target="#sample-search-results"
hx-swap="swap:200ms"
hx-indicator="#sample-search-results"
hx-vals='js:{
"page": 1,
"institutions": getSelectedInstitutions(),
Expand Down
5 changes: 5 additions & 0 deletions canvas/templates/canvas/partials/sample_results.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<span class="htmx-indicator">
<i class="fa-solid fa-spinner fa-spin"></i>
Looking for matching samples...
</span>

{% if samples.number == 1 %}
<div style="display: flex; align-items: center; gap: 1rem;">
<div
Expand Down

0 comments on commit 478060a

Please sign in to comment.