calendar download, date input validate, nc talk notification

This commit is contained in:
Matthias Hochmeister
2026-03-04 15:01:26 +01:00
parent d27d2931a5
commit fb5acd3d52
4 changed files with 86 additions and 9 deletions

View File

@@ -642,6 +642,20 @@ function EventFormDialog({
notification.showError('Titel ist erforderlich');
return;
}
const vonDate = new Date(form.datum_von);
const bisDate = new Date(form.datum_bis);
if (isNaN(vonDate.getTime())) {
notification.showError('Ungültiges Von-Datum');
return;
}
if (isNaN(bisDate.getTime())) {
notification.showError('Ungültiges Bis-Datum');
return;
}
if (bisDate < vonDate) {
notification.showError('Bis-Datum muss nach dem Von-Datum liegen');
return;
}
setLoading(true);
try {
if (editingEvent) {