Feat: Cambiar rango de muestras por sesión a 1-10
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m8s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m8s
- Actualizar límites de input HTML de min=3/max=7 a min=1/max=10 - Actualizar validación JavaScript para permitir entre 1 y 10 muestras - Actualizar textos de ayuda y placeholder - Mantener valor por defecto en 5 muestras
This commit is contained in:
@@ -175,13 +175,13 @@
|
||||
v-model.number="formData.cantidadMuestras"
|
||||
type="number"
|
||||
required
|
||||
min="3"
|
||||
max="7"
|
||||
min="1"
|
||||
max="10"
|
||||
class="cata-input w-full"
|
||||
placeholder="Entre 3 y 7 muestras"
|
||||
placeholder="Entre 1 y 10 muestras"
|
||||
>
|
||||
<p class="text-xs cata-text opacity-60 mt-1">
|
||||
Selecciona entre 3 y 7 muestras
|
||||
Selecciona entre 1 y 10 muestras
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -278,8 +278,8 @@ const crearSesion = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
if (formData.cantidadMuestras < 3 || formData.cantidadMuestras > 7) {
|
||||
alert('La cantidad de muestras debe estar entre 3 y 7')
|
||||
if (formData.cantidadMuestras < 1 || formData.cantidadMuestras > 10) {
|
||||
alert('La cantidad de muestras debe estar entre 1 y 10')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user