mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 06:01:56 -07:00
Fix aircraft dashboard start tracking status check
- Accept 'started' status in addition to 'success' and 'already_running' - Show actual status in error message for debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -14541,7 +14541,7 @@ def adsb_dashboard():
|
||||
});
|
||||
const data = await response.json();
|
||||
|
||||
if (data.status === 'success' || data.status === 'already_running') {
|
||||
if (data.status === 'success' || data.status === 'started' || data.status === 'already_running') {
|
||||
startEventStream();
|
||||
isTracking = true;
|
||||
btn.textContent = 'STOP TRACKING';
|
||||
@@ -14549,7 +14549,7 @@ def adsb_dashboard():
|
||||
document.getElementById('trackingDot').classList.remove('inactive');
|
||||
document.getElementById('trackingStatus').textContent = 'TRACKING';
|
||||
} else {
|
||||
alert('Failed to start: ' + (data.message || 'Unknown error'));
|
||||
alert('Failed to start: ' + (data.message || data.status || 'Unknown error'));
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Start error:', err);
|
||||
|
||||
Reference in New Issue
Block a user