diff --git a/.env.development b/.env.development index 481e89e4..5324bf5c 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index e789e2ea..c26ff524 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test.risosrv b/.env.test.risosrv index 9702f080..7cecfe16 100755 --- a/.env.test.risosrv +++ b/.env.test.risosrv @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/fioredellavita.riso.app/.env.development b/_ALL_SITES/fioredellavita.riso.app/.env.development index 12e47bef..3e5c59ba 100755 --- a/_ALL_SITES/fioredellavita.riso.app/.env.development +++ b/_ALL_SITES/fioredellavita.riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="15" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/fioredellavita.riso.app/.env.test b/_ALL_SITES/fioredellavita.riso.app/.env.test index 7775cb9b..1460be95 100755 --- a/_ALL_SITES/fioredellavita.riso.app/.env.test +++ b/_ALL_SITES/fioredellavita.riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="15" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index 481e89e4..5324bf5c 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production index 17a0619d..6d5061c2 100644 --- a/_ALL_SITES/riso.app/.env.production +++ b/_ALL_SITES/riso.app/.env.production @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.test b/_ALL_SITES/riso.app/.env.test index 4cafcdb7..98879930 100755 --- a/_ALL_SITES/riso.app/.env.test +++ b/_ALL_SITES/riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development index 1bde6b62..51a81f39 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.0.19" +APP_VERSION="1.0.20" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL="newfreeplanet" diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 10d49af4..48c5a733 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -221,6 +221,11 @@ export const shared_consts = { VISIB_ONLY_MANAGER: 2, VISIB_ONLY_ADMIN: 4, + CIRCUIT_CFG: { + MULT_FIDO_USER: 2.0, + MULT_FIDO_GROUP: 2.0, + }, + Visibility_Group: { PRIVATE: 1, HIDDEN: 2, @@ -1694,6 +1699,7 @@ export const shared_consts = { nome_valuta: 1, fido_scoperto_default: 1, deperimento: 1, + showAlways: 1, status: 1, transactionsEnabled: 1, qta_max_default: 1, diff --git a/src/components/CMyCircuit/CMyCircuit.vue b/src/components/CMyCircuit/CMyCircuit.vue index 2cf6808c..f7e46c26 100755 --- a/src/components/CMyCircuit/CMyCircuit.vue +++ b/src/components/CMyCircuit/CMyCircuit.vue @@ -107,7 +107,7 @@ lines="1" > - + +
+ + + + +
+
+ userStore.my.profile.mycircuits.findIndex((rec: any) => circ.name === rec.circuitname) >= 0) } else if (props.modelValue === costanti.ASK_SENT_CIRCUIT) { arr = userStore.my.profile.asked_circuits @@ -115,6 +115,16 @@ export default defineComponent({ arr = [] } + if (props.modelValue === costanti.MY_CIRCUITS) { + const arrtoinsert: any = circuitStore.listcircuits.filter((circ: any) => circ.showAlways) + for (const rec of arrtoinsert) { + if (arr.findIndex(myrec => myrec._id === rec._id) < 0) { + // Se non c'è il circuito Nazionale, glielo aggiungo + arr.push(rec) + } + } + } + return arr } diff --git a/src/components/CMyProfileTutorial/CMyProfileTutorial.ts b/src/components/CMyProfileTutorial/CMyProfileTutorial.ts index 2d54a7c3..0440a9df 100755 --- a/src/components/CMyProfileTutorial/CMyProfileTutorial.ts +++ b/src/components/CMyProfileTutorial/CMyProfileTutorial.ts @@ -95,9 +95,10 @@ export default defineComponent({ tools.scrollToTop() } - if ((step.value === STEP_CIRCUIT - 1) || (step.value === STEP_CIRCUIT )) { + if ((step.value === STEP_CIRCUIT )) { mycircuit.value = circuitStore.getCircuitByProvince(strProv.value) - userStore.savenoCircuit(isAskedToCircuit()) + console.log('isAskedToCircuit()', isAskedToCircuit()) + // userStore.savenoCircuit(isAskedToCircuit()) } if (step.value === STEP_NAME_SURNAME + 1) { diff --git a/src/model/GlobalStore.ts b/src/model/GlobalStore.ts index 352520f8..9e784a44 100755 --- a/src/model/GlobalStore.ts +++ b/src/model/GlobalStore.ts @@ -1108,6 +1108,7 @@ export interface ICircuit { qta_max_default_grp?: number data_costituz?: Date deperimento: boolean + showAlways: boolean transactionsEnabled: boolean status: number freq_deper?: string diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index 491a990a..b31e6283 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -228,7 +228,7 @@ const msg_it = { refusedgroup: 'Rifiutato a {username} la richiesta di entrare nel Gruppo', youarerefusedgroup: 'Ti è stato rifiutata la richiesta di entrare in questo Gruppo (per info chiedi all\'amministratore del gruppo)', youarerefusedcircuit: 'Ti è stato rifiutata la richiesta di entrare in questo Circuito (per info chiedi all\'amministratore del gruppo)', - insertgoodorservices_to_enter_circuit: 'Per poter inviare RIS è necessario aggiungere almeno un Bene, Servizio o offrire Ospitalità', + insertgoodorservices_to_enter_circuit: 'Per poter inviare RIS è consigliato partecipare al circuito, aggiungendo quello che possiamo proporre noi (un Bene, un Servizio, Ospitalità, ecc...)', deletedgroup: 'Gruppo Eliminato', domanda_addtofriend: 'Aggiungere agli amici {username}?', domanda_addtohandshake: 'Confermi che hai conosciuto personalmente e dai la tua fiducia a {username} ?', @@ -1219,6 +1219,8 @@ const msg_it = { preferences: 'Preferenze', }, circuit: { + apri: 'Entra !', + non_entrato: 'Per far parte di questo Circuito devi chiedere di Entrare!', link_chat: 'Chat {name}', link_group: 'Gruppo Telegram', chat_gruppo_telegram_circuito: 'Entra nella chat di Gruppo Telegram dove conoscerai persone della tua provincia', @@ -1263,6 +1265,7 @@ const msg_it = { qta_max_default_tips_grp: 'Rappresenta quanto credito ti è concesso accumulare al gruppo. Incentiviamo così a frequenti scambi tra i partecipanti', data_costituz: 'Data Costituzione', deperimento: 'Deperimento', + showAlways: 'Mostra Sempre', freq_deper: 'Frequenza Deperimento', minuto_deper: 'Minuto Dep.', ora_deper: 'Ora Dep.', diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index bb0c613c..1d1cc4ec 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -3005,6 +3005,7 @@ export const colTableCircuitComplete = [ AddCol({ name: 'qta_max_default_grp', label_trans: 'circuit.qta_max_default_grp', fieldtype: costanti.FieldType.currency }), AddCol({ name: 'data_costituz', label_trans: 'circuit.data_costituz', fieldtype: costanti.FieldType.date }), AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean }), + AddCol({ name: 'showAlways', label_trans: 'circuit.showAlways', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'freq_deper', label_trans: 'circuit.freq_deper' }), AddCol({ name: 'minuto_deper', label_trans: 'circuit.minuto_deper', fieldtype: costanti.FieldType.number }), @@ -3144,6 +3145,7 @@ export const colTableCircuit = [ }), AddCol({ name: 'regulation', label_trans: 'circuit.regulation', fieldtype: costanti.FieldType.html, required: false }), AddCol({ name: 'deperimento', label_trans: 'circuit.deperimento', fieldtype: costanti.FieldType.boolean, disable: true }), + AddCol({ name: 'showAlways', label_trans: 'circuit.showAlways', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'transactionsEnabled', label_trans: 'circuit.transactionsEnabled', fieldtype: costanti.FieldType.boolean }), AddCol({ name: 'status', label_trans: 'circuit.status', diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index c114037e..d73ec06c 100644 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -7065,6 +7065,7 @@ export const tools = { admins: [], color: '#ff5500', deperimento: false, + showAlways: false, transactionsEnabled: false, status: shared_consts.CIRCUIT_STATUS.FASE1_CREAZIONE_GRUPPO, symbol: 'RIS', diff --git a/src/views/user/mycircuit/mycircuit.vue b/src/views/user/mycircuit/mycircuit.vue index aee692e1..d86bdf26 100755 --- a/src/views/user/mycircuit/mycircuit.vue +++ b/src/views/user/mycircuit/mycircuit.vue @@ -107,7 +107,7 @@ class="fit column no-wrap justify-evenly items-center content-start" >
- + -
+
{{ circuit.name }}
@@ -449,8 +449,8 @@ style="max-width: 500px" v-if="tools.iCanShowCircuitsMember(circuit)" > -
{{ t('circuit.contideigruppi') }}:
-
+
{{ t('circuit.contideigruppi') }}:
+
-
{{ t('circuit.info') }}
+
{{ t('circuit.info') }}
-
+
-
{{ t('circuit.descr') }}:
+
{{ t('circuit.descr') }}:
-
+
{{ t('circuit.symbol') }}: - + -
{{ t('circuit.regulation') }}:
+
{{ t('circuit.regulation') }}:
@@ -892,14 +892,14 @@ >
-
+
-
+
{{ $t('shared.createddate', { @@ -913,15 +913,17 @@ tools.getstrDate(circuit.date_updated) !== tools.getstrDate(circuit.date_created) " - class="container" + class="container text-h8" > - {{ + {{ $t('shared.lastmodify', { date: tools.getstrDateYY(circuit.date_updated), }) }} +
+
@@ -1028,15 +1030,15 @@ -
{{ t('circuit.contocomunitario') }}:
-
+
{{ t('circuit.contocomunitario') }}:
+
{{ $t('circuit.info_contocom') }}
-
+
-
+
-
+
{{ path }}
-
+