This commit is contained in:
Tomas Dvorak
2025-05-30 09:28:33 +02:00
parent 142e81e572
commit b3deb87df5
+3 -5
View File
@@ -1498,11 +1498,9 @@ async function loadDynamicApps() {
return; return;
} }
// Filter out hardcoded apps and map to HTML // Map all apps to HTML, including hardcoded ones
const dynamicApps = apps const dynamicApps = apps.map(app => `
.filter(app => !app.id || !app.id.startsWith('hardcoded-')) <div class="bg-white rounded-lg shadow p-4 flex items-center justify-between ${app.id && app.id.startsWith('hardcoded-') ? 'opacity-75' : ''}" data-app-id="${app.id}">
.map(app => `
<div class="bg-white rounded-lg shadow p-4 flex items-center justify-between" data-app-id="${app.id}">
<div class="flex items-center space-x-4"> <div class="flex items-center space-x-4">
${app.icon ? ${app.icon ?
`<img src="/uploads/${app.icon}" alt="${app.name}" class="w-12 h-12 object-contain">` : `<img src="/uploads/${app.icon}" alt="${app.name}" class="w-12 h-12 object-contain">` :