feat(paths): keep map picker open after adding repeater

Map modal no longer closes on Add - resets selection instead so user
can pick multiple repeaters in sequence. Cancel button renamed to Close.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-23 08:23:21 +01:00
parent bf00e7c7d3
commit a0a957289e
2 changed files with 5 additions and 2 deletions

View File

@@ -2108,7 +2108,10 @@ function openRepeaterMapPicker() {
checkUniquenessWarning(_repeatersCache, hashSize);
}
}
modal.hide();
// Reset selection for next pick
_rptMapSelectedRepeater = null;
if (addBtn) addBtn.disabled = true;
if (selectedLabel) selectedLabel.textContent = 'Click a repeater on the map';
};
}

View File

@@ -426,7 +426,7 @@
</div>
<div class="modal-footer py-2">
<span class="me-auto small text-muted" id="rptMapSelected">Click a repeater on the map</span>
<button type="button" class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-sm btn-primary" id="rptMapAddBtn" disabled>Add</button>
</div>
</div>