- Il circuito viene creato in automatico, quando scegli una provincia.
This commit is contained in:
@@ -22,6 +22,7 @@ import { useCircuitStore } from '@store/CircuitStore'
|
||||
|
||||
const STEP_NAME_SURNAME = 2
|
||||
const STEP_FOTO = 5
|
||||
const STEP_CIRCUIT = 3
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyProfileTutorial',
|
||||
@@ -94,6 +95,10 @@ export default defineComponent({
|
||||
tools.scrollToTop()
|
||||
}
|
||||
|
||||
if ((step.value === STEP_CIRCUIT - 1) || (step.value === STEP_CIRCUIT )) {
|
||||
mycircuit.value = circuitStore.getCircuitByProvince(strProv.value)
|
||||
}
|
||||
|
||||
if (step.value === STEP_NAME_SURNAME + 1) {
|
||||
let index = step.value
|
||||
console.log('Salva ', arrStep[index])
|
||||
@@ -135,7 +140,7 @@ export default defineComponent({
|
||||
icon: 'user'
|
||||
},
|
||||
{
|
||||
step: 3,
|
||||
step: STEP_CIRCUIT,
|
||||
title: t('tutorial.step_circuito_title'),
|
||||
extratitle: function () { return mycircuit.value ? ': ' + mycircuit.value.name : '' },
|
||||
label: t('tutorial.step_circuito'),
|
||||
@@ -160,7 +165,7 @@ export default defineComponent({
|
||||
icon: 'fas fa-tshirt',
|
||||
},
|
||||
{
|
||||
step: 5,
|
||||
step: STEP_FOTO,
|
||||
title: t('tutorial.step_foto_title'),
|
||||
extratitle: function () { return ': (' + (userStore.my.profile.img ? t('dialog.yes') : t('dialog.no')) + ')' },
|
||||
label: t('tutorial.step_foto'),
|
||||
@@ -351,6 +356,7 @@ export default defineComponent({
|
||||
completed,
|
||||
getColorTutorial,
|
||||
getFirstStepToFill,
|
||||
STEP_CIRCUIT,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user