📝 "🐛 Backend update: Refined database shm

This commit is contained in:
Till Tomczak 2025-05-30 19:36:49 +02:00
parent 4d7d057805
commit 4c6cfd591c
3 changed files with 9 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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);
}