diff --git a/src/pages/DispatchV2Page.vue b/src/pages/DispatchV2Page.vue index b9c5f24..14c07ea 100644 --- a/src/pages/DispatchV2Page.vue +++ b/src/pages/DispatchV2Page.vue @@ -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