- Visu Saldo su Home
- SendRisTo - Movimenti conto Comunitario - Profilo
This commit is contained in:
@@ -21,6 +21,7 @@ import { useRoute, useRouter } from 'vue-router'
|
||||
import { useCircuitStore } from '@store/CircuitStore'
|
||||
|
||||
const STEP_NAME_SURNAME = 2
|
||||
const STEP_FOTO = 5
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyProfileTutorial',
|
||||
@@ -103,6 +104,15 @@ export default defineComponent({
|
||||
userStore.savenoNameSurname(true)
|
||||
}
|
||||
}
|
||||
if (step.value === STEP_FOTO + 1) {
|
||||
let index = step.value
|
||||
if (userStore.my.profile.img) {
|
||||
// foto esistente
|
||||
userStore.savenoFoto(false)
|
||||
} else {
|
||||
userStore.savenoFoto(true)
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
@@ -224,6 +234,8 @@ export default defineComponent({
|
||||
if (contact.value)
|
||||
filtroutente.value = [{ userId: contact.value._id }]
|
||||
|
||||
userStore.my.profile.stepTutorial = getFirstStepToFill()
|
||||
|
||||
step.value = userStore.my.profile.stepTutorial ? userStore.my.profile.stepTutorial : 1
|
||||
if (step.value > numstep.value)
|
||||
step.value = numstep.value
|
||||
@@ -234,7 +246,6 @@ export default defineComponent({
|
||||
userStore.my.profile.stepTutorial = 1
|
||||
}
|
||||
|
||||
userStore.my.profile.stepTutorial = getFirstStepToFill()
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
clcolor="text-white"
|
||||
myclass="myshad"
|
||||
:canopen="!completed()"
|
||||
:header="step < numstep"
|
||||
>
|
||||
<q-slide-transition>
|
||||
<div v-show="step < numstep">
|
||||
@@ -192,7 +191,7 @@
|
||||
dense
|
||||
size="md"
|
||||
:label="$t('dialog.vai')"
|
||||
@click="step = getFirstStepToFill()"
|
||||
@click="step = 1"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user