From 7af995f561e7c53ad5fec3140e75d1952d8c783f Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 4 Jun 2026 18:19:06 -0700 Subject: [PATCH] fix: hide unavailable map setup action --- .../src/components/maps/LocationMapSetupPanel.jsx | 15 ++++----------- frontend/tests/location-map-manager.spec.ts | 8 +++----- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/maps/LocationMapSetupPanel.jsx b/frontend/src/components/maps/LocationMapSetupPanel.jsx index 1bccf2a..4624298 100644 --- a/frontend/src/components/maps/LocationMapSetupPanel.jsx +++ b/frontend/src/components/maps/LocationMapSetupPanel.jsx @@ -11,9 +11,7 @@ export default function LocationMapSetupPanel({ onCreateBlank, }) { const hasZones = zoneCount > 0; - const createFromZonesLabel = hasZones - ? `Create From ${zoneCount} Zone${zoneCount === 1 ? "" : "s"}` - : "Create From Zones"; + const createFromZonesLabel = `Create From ${zoneCount} Zone${zoneCount === 1 ? "" : "s"}`; const createBlankLabel = savingAction === "create-blank" ? "Creating..." : "Create Blank Map"; const createZonesButtonLabel = savingAction === "create-zones" ? "Creating..." : createFromZonesLabel; const publishLabel = savingAction === "publish" ? "Publishing..." : "Publish"; @@ -44,14 +42,9 @@ export default function LocationMapSetupPanel({ ) : !hasAnyMap && canManage ? (
{!hasZones ? ( - <> - - - + ) : ( <>