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:
parent
ec385c99d0
commit
b90db4673a
|
|
@ -1110,6 +1110,13 @@ async function autoDistribute () {
|
||||||
invalidateRoutes()
|
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 ─────────────────────────────────────────
|
// ─── Optimize route for a single tech ─────────────────────────────────────────
|
||||||
async function optimizeRoute () {
|
async function optimizeRoute () {
|
||||||
if (!techCtx.value) return
|
if (!techCtx.value) return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user