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:
James Smith
2025-12-22 17:08:47 +00:00
parent 1312ed5e2f
commit a01fd7415f
+2 -2
View File
@@ -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);