diff --git a/src/web/routes/dashboard.ts b/src/web/routes/dashboard.ts index ebb3ccb..0ad778a 100644 --- a/src/web/routes/dashboard.ts +++ b/src/web/routes/dashboard.ts @@ -1618,22 +1618,22 @@ router.get('/', (req, res) => { if (!list) return; list.innerHTML = ''; if (!automationCache.length) { - list.innerHTML = '
Keine Regeln.
'; + list.innerHTML = '
Keine Regeln.
'; return; } automationCache.forEach((r) => { const row = document.createElement('div'); row.className = 'ticket-list-item'; row.innerHTML = - '
' + + '
' + (r.name || 'Regel') + - '
' + + '
' + (r.active ? 'aktiv' : 'inaktiv') + '
' + - '
Condition: ' + + '
Condition: ' + JSON.stringify(r.condition || {}) + '
' + - '
Action: ' + + '
Action: ' + JSON.stringify(r.action || {}) + '
'; const actions = document.createElement('div'); @@ -1644,14 +1644,14 @@ router.get('/', (req, res) => { edit.addEventListener('click', () => fillAutomationForm(r)); const del = document.createElement('button'); del.className = 'danger-btn'; - del.textContent = 'Löschen'; + del.textContent = 'Loeschen'; del.addEventListener('click', async () => { const res = await fetch('/api/automations/' + r.id, { method: 'DELETE', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ guildId: currentGuild }) }); - showToast(res.ok ? 'Regel gelöscht' : 'Löschen fehlgeschlagen', !res.ok); + showToast(res.ok ? 'Regel geloescht' : 'Loeschen fehlgeschlagen', !res.ok); if (res.ok) loadAutomations(); }); actions.appendChild(edit); @@ -1660,8 +1660,7 @@ router.get('/', (req, res) => { list.appendChild(row); }); } - - function fillAutomationForm(rule) { +function fillAutomationForm(rule) { document.getElementById('automationId').value = rule.id || ''; document.getElementById('automationName').value = rule.name || ''; document.getElementById('automationConditionType').value =