Prevent user form entering negative numbers into event duration (#1231)

* Add Docker Compose as requirement to run the quick start

* Add basic frontend validation/needs for event duration

* Only add min prop to the duration field

* Don't allow negative value for the event buffer time

* Increase min duration of a event type

Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
Flemming 2021-11-30 20:18:28 +01:00 committed by GitHub
parent 0a7233d452
commit 5773d064c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -553,6 +553,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
}
id="length"
required
min="10"
placeholder="15"
defaultValue={eventType.length || 15}
onChange={(e) => {
@ -807,6 +808,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
<MinutesField
label={t("minimum_booking_notice")}
required
min="0"
placeholder="120"
defaultValue={eventType.minimumBookingNotice}
onChange={(e) => {