- Entri in Circuito Italia solo se hai il fido nel circuito provinciale
- Aggiunta Zona, oltre alla provincia, per visualizzare i vari circuiti della prov
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineComponent, onMounted, PropType, ref, watch, computed } from 'vue'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { ICircuit, IImgGallery, IUserFields, IUserProfile } from 'model'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
@@ -53,6 +54,7 @@ export default defineComponent({
|
||||
|
||||
const userStore = useUserStore()
|
||||
const circuitStore = useCircuitStore()
|
||||
const globalStore = useGlobalStore()
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
const $router = useRouter()
|
||||
@@ -107,6 +109,11 @@ export default defineComponent({
|
||||
|
||||
watch(() => strProv.value, (newval: string, oldval: string) => {
|
||||
mycircuit.value = circuitStore.getCircuitByProvinceAndCard(strProv.value, card.value)
|
||||
if (!globalStore.isPresenteCardsByProv(strProv.value)) {
|
||||
if (contact.value && contact.value.profile.resid_card) {
|
||||
contact.value.profile.resid_card = ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => card.value, (newval: string, oldval: string) => {
|
||||
@@ -432,7 +439,7 @@ export default defineComponent({
|
||||
if (circuitStore.SonoDentroAdAlmeno1CircuitoConFido())
|
||||
arrStep.value.push({ ...stepCircItalia, indstep: numindstep.value })
|
||||
|
||||
arrStep.value.push({ ...stepFine, indstep: numindstep.value })
|
||||
// arrStep.value.push({ ...stepFine, indstep: numindstep.value })
|
||||
|
||||
if (userStore.isUserOk()) {
|
||||
updatestart()
|
||||
@@ -553,6 +560,7 @@ export default defineComponent({
|
||||
usersList,
|
||||
userstoverify,
|
||||
numStepCompleted,
|
||||
globalStore,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user