notificación de que no tenemos fechas disponibles

This commit is contained in:
Jaume Solís 2024-04-19 09:43:23 +02:00
parent c1dcf495eb
commit ced6e7f438
2 changed files with 14 additions and 1 deletions

View File

@ -53,6 +53,14 @@ export default defineComponent({
return formattedDate;
});
if(!dates) {
quasarNotify({
type: "erro",
message: `No tenemos fechas de entrega posibles para este código postal`,
});
setFieldError("postalCode", M.fiveLength);
}
postalCodeValid.value.dataOptions = dates;
postalCodeValid.value.isValid = true;
isPostalCodeLoading.value = false;

View File

@ -120,7 +120,7 @@ export default defineComponent({
<IconSearch /> ver disponibilidad
</q-btn>
</form>
<span v-if="postalCodeValid.value.isValid && postalCodeValid.value.dataOptions.length == 0">Para este código postal no existen fechas de entrega posibles</span>
<!--<span v-if="postalCodeValid.value.isValid && postalCodeValid.value.dataOptions.length == 0">Para este código postal no existen fechas de entrega posibles</span>-->
</div>
</div>
@ -221,6 +221,11 @@ export default defineComponent({
font-weight: 500;
line-height: 30px;
color: currentColor;
@media only screen and (max-width: $med-xmd) {
padding-left: 20px;
padding-right: 20px;
}
}
& .carousel-header-paragraph {