mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
chore: translate some strings, add organizer to waterfall view
This commit is contained in:
@@ -9,7 +9,7 @@ async function createEvent() {
|
||||
|
||||
// Walidacja prostych pól
|
||||
if (!title || !location || !eventDateRaw) {
|
||||
alert("Uzupełnij wszystkie wymagane pola!");
|
||||
alert("Please fill out all of the required fields!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -34,11 +34,11 @@ async function createEvent() {
|
||||
throw new Error(errorText);
|
||||
}
|
||||
|
||||
alert("Wydarzenie zostało utworzone!");
|
||||
alert("Event created successfully!");
|
||||
window.location.href = "/"; // Przekierowanie do strony głównej
|
||||
} catch (error) {
|
||||
console.error("Błąd podczas tworzenia:", error);
|
||||
alert("Nie udało się utworzyć wydarzenia: " + error);
|
||||
console.error("Couldn't create event:", error);
|
||||
alert("Couldn't create new event: " + error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user