fix: load SignalIdModal on dashboard pages; clear status on zero matches

- Added signal-id-modal.js script to base_dashboard.html (nav button was silent on dashboard pages)
- Added else branch to clear "Searching…" status when zero matches returned

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-07-03 09:08:34 +01:00
parent 339f6cc04b
commit c2d766fcfa
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -277,6 +277,8 @@ window.SignalIdModal = (function () {
if (matches.length) {
_setStatus(matches.length + ' match' + (matches.length !== 1 ? 'es' : '')
+ ' for ' + freq.toFixed(4) + ' MHz');
} else {
_setStatus('');
}
_renderResults(matches, freq);
})
+1
View File
@@ -184,6 +184,7 @@
{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='js/components/signal-id-modal.js') }}{% if version %}?v={{ version }}{% endif %}"></script>
<script>
// Dashboard-specific scripts
(function() {