Skip CAT updates when manual logging is enabled

Added a check for the 'manual' URL parameter to bypass CAT data updates and reset the UI when manual QSO entry is active. This ensures that CAT updates do not interfere with manual logging workflows.
This commit is contained in:
Peter Goodhall 2025-12-12 14:29:39 +00:00
parent 3acfa64e57
commit 8c6fc6b720

View file

@ -1964,6 +1964,19 @@ $(document).ready(function() {
// Update UI from CAT data
const updateFromCAT = (radioID) => {
// If manual logging is forced (manual=1), skip CAT updates entirely
const manualParam = new URLSearchParams(window.location.search).get('manual');
const manualMode = manualParam === '1';
if (manualMode) {
console.log("Manual QSO entry enabled, skipping CAT update.");
// Set Radio to Zero
$('#radio').val('0').trigger('change');
resetUI();
return;
}
if (radioID === '0') return;
$.getJSON(`radio/json/${radioID}`, (data) => {