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;