Fix: restore techCtx and openTechCtx lost during map extraction

These were accidentally deleted when removing ~576 lines of inline map code.
Caused ReferenceError preventing the app from loading data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
louispaulb 2026-03-24 14:22:19 -04:00
parent ec385c99d0
commit b90db4673a

View File

@ -1110,6 +1110,13 @@ async function autoDistribute () {
invalidateRoutes()
}
// Tech context menu (was deleted during map extraction)
const techCtx = ref(null)
function openTechCtx (e, tech) {
e.preventDefault(); e.stopPropagation()
techCtx.value = { x: Math.min(e.clientX, window.innerWidth - 220), y: Math.min(e.clientY, window.innerHeight - 120), tech }
}
// Optimize route for a single tech
async function optimizeRoute () {
if (!techCtx.value) return