feat(events): redirected user to /events/entries after he created an entry for and event slot
Build and Push Docker image / build-and-push (push) Successful in 1m47s
Details
Build and Push Docker image / build-and-push (push) Successful in 1m47s
Details
This commit is contained in:
parent
ed341d7ca7
commit
0260de9a6e
|
@ -79,7 +79,7 @@ export default function LoginModal() {
|
||||||
label={"Anmeldename"}
|
label={"Anmeldename"}
|
||||||
placeholder={
|
placeholder={
|
||||||
formValues.values.authMethod === "ldap" ?
|
formValues.values.authMethod === "ldap" ?
|
||||||
"vorname.nachname" : "Anmeldename oder Email"
|
"vorname.nachname" : "Anmeldename"
|
||||||
}
|
}
|
||||||
{...formValues.getInputProps("username")}
|
{...formValues.getInputProps("username")}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -45,8 +45,12 @@ export default function RegisterModal() {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
handler.close()
|
handler.close()
|
||||||
formValues.reset()
|
formValues.reset()
|
||||||
showSuccessNotification("Account erfolgreich angelegt")
|
showSuccessNotification(
|
||||||
showSuccessNotification("Bitte bestätige deine E-Mail Adresse")
|
"Account erfolgreich angelegt. " +
|
||||||
|
"Bitte überprüfe deine E-Mails und klicke auf den Bestätigungslink. " +
|
||||||
|
"Das verschicken der E-Mail kann einige Minuten dauern. " +
|
||||||
|
"Falls du keine E-Mail erhalten hast überprüfe bitte deinen Spam Ordner."
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@ export default function EditEventImage({event}: { event: EventModel }) {
|
||||||
<ShowHelp>
|
<ShowHelp>
|
||||||
Setzte die Stimmung für dein Event mit einem Bild. Das Bild wird auf der öffentlichen
|
Setzte die Stimmung für dein Event mit einem Bild. Das Bild wird auf der öffentlichen
|
||||||
Eventseite angezeigt.
|
Eventseite angezeigt.
|
||||||
|
<br/>
|
||||||
|
Am besten eignet sich ein <b>quadratisches</b> Bild ohne Text.
|
||||||
</ShowHelp>
|
</ShowHelp>
|
||||||
|
|
||||||
<PocketBaseErrorAlert error={editMutation.error}/>
|
<PocketBaseErrorAlert error={editMutation.error}/>
|
||||||
|
@ -47,6 +49,7 @@ export default function EditEventImage({event}: { event: EventModel }) {
|
||||||
!image &&
|
!image &&
|
||||||
<div>
|
<div>
|
||||||
<ImageSelect
|
<ImageSelect
|
||||||
|
|
||||||
onChange={(files) => setImage(files[0])}
|
onChange={(files) => setImage(files[0])}
|
||||||
fileCount={image ? 1 : 0}
|
fileCount={image ? 1 : 0}
|
||||||
maxFileCount={1}
|
maxFileCount={1}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {FieldEntries} from "@/components/formUtil/FromInput/types.ts";
|
||||||
import {showSuccessNotification} from "@/components/util.tsx";
|
import {showSuccessNotification} from "@/components/util.tsx";
|
||||||
import InnerHtml from "@/components/InnerHtml";
|
import InnerHtml from "@/components/InnerHtml";
|
||||||
import FormInput from "@/components/formUtil/FromInput";
|
import FormInput from "@/components/formUtil/FromInput";
|
||||||
|
import {useNavigate} from "react-router-dom";
|
||||||
|
|
||||||
export default function EventListSlotView({slot, list, refetch}: {
|
export default function EventListSlotView({slot, list, refetch}: {
|
||||||
list: EventListModel,
|
list: EventListModel,
|
||||||
|
@ -33,6 +34,8 @@ export default function EventListSlotView({slot, list, refetch}: {
|
||||||
|
|
||||||
const {pb, user} = usePB()
|
const {pb, user} = usePB()
|
||||||
|
|
||||||
|
const navigate = useNavigate()
|
||||||
|
|
||||||
const createEntryMutation = useMutation({
|
const createEntryMutation = useMutation({
|
||||||
mutationFn: async (data: FieldEntries) => {
|
mutationFn: async (data: FieldEntries) => {
|
||||||
await pb.collection("eventListSlotEntries").create({
|
await pb.collection("eventListSlotEntries").create({
|
||||||
|
@ -45,6 +48,7 @@ export default function EventListSlotView({slot, list, refetch}: {
|
||||||
showSuccessNotification("Eintrag erfolgreich erstellt")
|
showSuccessNotification("Eintrag erfolgreich erstellt")
|
||||||
expandedHandler.close()
|
expandedHandler.close()
|
||||||
refetch()
|
refetch()
|
||||||
|
navigate(`/events/entries`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue