diff --git a/backend/app/database/myp.db-shm b/backend/app/database/myp.db-shm index 87236817..863ce04e 100644 Binary files a/backend/app/database/myp.db-shm and b/backend/app/database/myp.db-shm differ diff --git a/backend/app/database/myp.db-wal b/backend/app/database/myp.db-wal index 9e648f14..8fdecdf5 100644 Binary files a/backend/app/database/myp.db-wal and b/backend/app/database/myp.db-wal differ diff --git a/backend/app/templates/jobs.html b/backend/app/templates/jobs.html index c463b197..e877df0b 100644 --- a/backend/app/templates/jobs.html +++ b/backend/app/templates/jobs.html @@ -891,7 +891,7 @@ let refreshInterval; let lastUpdateTime; // Benutzer-spezifische Konfiguration -window.isAdmin = {% if current_user.is_admin %}true{% else %}false{% endif %}; +window.isAdmin = {{ 'true' if current_user.is_admin else 'false' }}; // Job Management System class JobManager { @@ -1846,7 +1846,11 @@ function showModal(modalId) { const modal = document.getElementById(modalId); const content = modal.querySelector('.mercedes-modal, .dashboard-card'); + // Entferne hidden-Klasse und setze display modal.classList.remove('hidden'); + modal.style.display = 'block'; + + // Animation mit leichter Verzögerung für smooth transition setTimeout(() => { content.classList.remove('scale-95', 'opacity-0'); content.classList.add('scale-100', 'opacity-100'); @@ -1857,10 +1861,14 @@ function hideModal(modalId) { const modal = document.getElementById(modalId); const content = modal.querySelector('.mercedes-modal, .dashboard-card'); + // Animation rückwärts content.classList.remove('scale-100', 'opacity-100'); content.classList.add('scale-95', 'opacity-0'); + + // Nach Animation verstecken setTimeout(() => { modal.classList.add('hidden'); + modal.style.display = 'none'; }, 200); }