diff --git a/frontend/app.js b/frontend/app.js index b9424b3..9ab857b 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -370,6 +370,17 @@ function renderKMLFiles(listId, files, isOwnFiles) { const uniqueId = `${listId}-${index}`; try { + // User Profile Link (new) + if (!isOwnFiles) { + const userBtn = document.getElementById(`user-${uniqueId}`); + if (userBtn) { + userBtn.addEventListener('click', (e) => { + e.stopPropagation(); + openUserProfile(file.user_id); + }); + } + } + // Open Details button const openBtn = document.getElementById(`open-${uniqueId}`); if (openBtn) { @@ -426,7 +437,7 @@ function createKMLFileHTML(file, isOwnFiles, listId, index) {