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:
parent
0a7233d452
commit
5773d064c2
1 changed files with 2 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue