calendar download, date input validate, nc talk notification
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user