- fix scelta provincia (il bottone Avanti non veniva disabilitato).
- Se non scelgo la provincia, non deve farmi vedere la App...
This commit is contained in:
@@ -133,7 +133,7 @@ export default defineComponent({
|
||||
title: t('tutorial.step_residence_title'),
|
||||
extratitle: function () { return ': ' + contact.value!.profile.resid_province },
|
||||
label: t('tutorial.step_residence'),
|
||||
checkOk: function (): boolean { return contact.value ? !!contact.value.profile.resid_province : false },
|
||||
checkOk: function (): boolean { return contact.value ? contact.value.profile.resid_province !== '' : false },
|
||||
checkOkReal: function (): boolean { return this.checkOk() },
|
||||
icon: 'house',
|
||||
required: true,
|
||||
@@ -407,9 +407,20 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
|
||||
function isNextDisable() {
|
||||
function getindstepByStep(step: number) {
|
||||
for (let indstep = 0; indstep < arrStep.value.length; indstep++) {
|
||||
if (arrStep.value[indstep].step === step)
|
||||
return indstep
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
function isNextDisable(step: number) {
|
||||
try {
|
||||
return arrStep.value[indstep.value - 1].required && !arrStep.value[indstep.value - 1].checkOk()
|
||||
const indstep = getindstepByStep(step)
|
||||
if (indstep >= 0)
|
||||
return arrStep.value[indstep].required && !arrStep.value[indstep].checkOk()
|
||||
return false
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user