Make sure maximumAttendeeCapacity is a number, not a string
Closes #1194 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5a30bc2f15
commit
0452b44f21
|
@ -279,7 +279,7 @@
|
||||||
:aria-minus-label="t('Decrease')"
|
:aria-minus-label="t('Decrease')"
|
||||||
:aria-plus-label="t('Increase')"
|
:aria-plus-label="t('Increase')"
|
||||||
min="1"
|
min="1"
|
||||||
v-model="eventOptions.maximumAttendeeCapacity"
|
v-model="maximumAttendeeCapacity"
|
||||||
id="number-of-places"
|
id="number-of-places"
|
||||||
/>
|
/>
|
||||||
</o-field>
|
</o-field>
|
||||||
|
@ -1292,6 +1292,15 @@ watch(isOnline, (newIsOnline) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const maximumAttendeeCapacity = computed({
|
||||||
|
get(): string {
|
||||||
|
return eventOptions.value.maximumAttendeeCapacity.toString();
|
||||||
|
},
|
||||||
|
set(newMaximumAttendeeCapacity: string) {
|
||||||
|
eventOptions.value.maximumAttendeeCapacity = parseInt(newMaximumAttendeeCapacity);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const dateFnsLocale = inject<Locale>("dateFnsLocale");
|
const dateFnsLocale = inject<Locale>("dateFnsLocale");
|
||||||
|
|
||||||
const firstDayOfWeek = computed((): number => {
|
const firstDayOfWeek = computed((): number => {
|
||||||
|
|
Loading…
Reference in a new issue