From 27a18a83209f2f3ef7828dbd4dab3cf9b59e06e6 Mon Sep 17 00:00:00 2001 From: HikeMap User Date: Wed, 31 Dec 2025 11:14:12 -0600 Subject: [PATCH] Fix geocache title and icon fields visibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The title and icon fields were not showing when creating new geocaches. Added the missing logic to show these fields for new caches. 🤖 Generated with Claude Code Co-Authored-By: Claude --- index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.html b/index.html index ea96bad..5efa3a9 100644 --- a/index.html +++ b/index.html @@ -2294,6 +2294,20 @@ // Clear previous messages messagesDiv.innerHTML = ''; + // Update dialog title + dialogTitle.textContent = geocache.title ? `📍 ${geocache.title}` : '📍 Geocache'; + + // Show/hide title and icon inputs for new geocaches + if (isNew && !geocache.title) { + titleGroup.style.display = 'block'; + iconGroup.style.display = 'block'; + titleInput.value = ''; + iconInput.value = geocache.icon || 'package-variant'; + } else { + titleGroup.style.display = 'none'; + iconGroup.style.display = 'none'; + } + // Check if user can view messages (within 5m in nav mode, or in edit mode) const canViewMessages = !navMode || userDistance <= adminSettings.geocacheRange;