mirror of
https://github.com/smittix/intercept.git
synced 2026-07-05 16:18:12 -07:00
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:
@@ -277,6 +277,8 @@ window.SignalIdModal = (function () {
|
|||||||
if (matches.length) {
|
if (matches.length) {
|
||||||
_setStatus(matches.length + ' match' + (matches.length !== 1 ? 'es' : '')
|
_setStatus(matches.length + ' match' + (matches.length !== 1 ? 'es' : '')
|
||||||
+ ' for ' + freq.toFixed(4) + ' MHz');
|
+ ' for ' + freq.toFixed(4) + ' MHz');
|
||||||
|
} else {
|
||||||
|
_setStatus('');
|
||||||
}
|
}
|
||||||
_renderResults(matches, freq);
|
_renderResults(matches, freq);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -184,6 +184,7 @@
|
|||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
<script src="{{ url_for('static', filename='js/components/signal-id-modal.js') }}{% if version %}?v={{ version }}{% endif %}"></script>
|
||||||
<script>
|
<script>
|
||||||
// Dashboard-specific scripts
|
// Dashboard-specific scripts
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user