From 5b878c08ff9d1ed11f8043179387674626d92549 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Fri, 30 May 2025 13:07:07 +0200 Subject: [PATCH] f --- admin-dashboard.html | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 0437ba6..f5281fa 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -2297,7 +2297,7 @@ function setupFileInput() { document.addEventListener('DOMContentLoaded', function() { // Initialize file input for custom icon upload - setupFileInput(); + // setupFileInput(); // Removed custom icon upload functionality // Add click handler for custom icon button const customIconBtn = document.getElementById('customIconBtn'); @@ -2532,29 +2532,20 @@ function renderIcons(searchTerm) { function selectIcon(iconClass) { const iconPickerModal = document.getElementById('iconPickerModal'); const selectedIcon = document.getElementById('selectedIcon'); - const customIconPreview = document.getElementById('customIconPreview'); const iconPreview = document.getElementById('iconPreview'); const appIcon = document.getElementById('appIcon'); const iconClassInput = document.getElementById('appIconClass'); - // Show the selected icon and hide custom icon preview + // Show the selected icon if (selectedIcon) { selectedIcon.className = `fas ${iconClass} text-2xl text-gray-400`; selectedIcon.classList.remove('hidden'); } - if (customIconPreview) { - customIconPreview.src = ''; - customIconPreview.classList.add('hidden'); - } // Set the app icon value to the selected icon class if (appIcon) appIcon.value = iconClass; if (iconClassInput) iconClassInput.value = iconClass; - // Reset file input - const customIconInput = document.getElementById('customIconInput'); - if (customIconInput) customIconInput.value = ''; - // Update preview with random color const colors = ['blue', 'green', 'red', 'yellow', 'indigo', 'purple', 'pink', 'gray']; const randomColor = colors[Math.floor(Math.random() * colors.length)];