diff --git a/src/static/js/app.js b/src/static/js/app.js index 51c2d56..52f440a 100644 --- a/src/static/js/app.js +++ b/src/static/js/app.js @@ -1909,6 +1909,7 @@ async handleRefresh() { // Formular mit aktuellen Werten füllen { const _e = document.getElementById('inc-title'); if (_e) _e.value = incident.title; } { const _e = document.getElementById('inc-description'); if (_e) _e.value = incident.description || ''; } + { const _b = document.getElementById('btn-enhance-description'); if (_b) _b.disabled = (incident.title || '').trim().length < 3; } { const _e = document.getElementById('inc-type'); if (_e) _e.value = incident.type || 'adhoc'; } { const _e = document.getElementById('inc-refresh-mode'); if (_e) _e.value = incident.refresh_mode; } App._setIntervalFields(incident.refresh_interval); @@ -3028,6 +3029,7 @@ function openModal(id) { document.getElementById('new-incident-form').reset(); document.getElementById('modal-new-title').textContent = 'Neue Lage anlegen'; document.getElementById('modal-new-submit').textContent = 'Lage anlegen'; + { const _b = document.getElementById('btn-enhance-description'); if (_b) _b.disabled = true; } // E-Mail-Checkboxen zuruecksetzen document.getElementById('inc-notify-summary').checked = false; document.getElementById('inc-notify-new-articles').checked = false;