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"}
|
||||
placeholder={
|
||||
formValues.values.authMethod === "ldap" ?
|
||||
"vorname.nachname" : "Anmeldename oder Email"
|
||||
"vorname.nachname" : "Anmeldename"
|
||||
}
|
||||
{...formValues.getInputProps("username")}
|
||||
/>
|
||||
|
|
|
@ -45,8 +45,12 @@ export default function RegisterModal() {
|
|||
onSuccess: () => {
|
||||
handler.close()
|
||||
formValues.reset()
|
||||
showSuccessNotification("Account erfolgreich angelegt")
|
||||
showSuccessNotification("Bitte bestätige deine E-Mail Adresse")
|
||||
showSuccessNotification(
|
||||
"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>
|
||||
Setzte die Stimmung für dein Event mit einem Bild. Das Bild wird auf der öffentlichen
|
||||
Eventseite angezeigt.
|
||||
<br/>
|
||||
Am besten eignet sich ein <b>quadratisches</b> Bild ohne Text.
|
||||
</ShowHelp>
|
||||
|
||||
<PocketBaseErrorAlert error={editMutation.error}/>
|
||||
|
@ -47,6 +49,7 @@ export default function EditEventImage({event}: { event: EventModel }) {
|
|||
!image &&
|
||||
<div>
|
||||
<ImageSelect
|
||||
|
||||
onChange={(files) => setImage(files[0])}
|
||||
fileCount={image ? 1 : 0}
|
||||
maxFileCount={1}
|
||||
|
|
|
@ -11,6 +11,7 @@ import {FieldEntries} from "@/components/formUtil/FromInput/types.ts";
|
|||
import {showSuccessNotification} from "@/components/util.tsx";
|
||||
import InnerHtml from "@/components/InnerHtml";
|
||||
import FormInput from "@/components/formUtil/FromInput";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
|
||||
export default function EventListSlotView({slot, list, refetch}: {
|
||||
list: EventListModel,
|
||||
|
@ -33,6 +34,8 @@ export default function EventListSlotView({slot, list, refetch}: {
|
|||
|
||||
const {pb, user} = usePB()
|
||||
|
||||
const navigate = useNavigate()
|
||||
|
||||
const createEntryMutation = useMutation({
|
||||
mutationFn: async (data: FieldEntries) => {
|
||||
await pb.collection("eventListSlotEntries").create({
|
||||
|
@ -45,6 +48,7 @@ export default function EventListSlotView({slot, list, refetch}: {
|
|||
showSuccessNotification("Eintrag erfolgreich erstellt")
|
||||
expandedHandler.close()
|
||||
refetch()
|
||||
navigate(`/events/entries`)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue