From 077c2dbd9e195462133c4590eaea6aa0ca3fd13a Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Sun, 4 Dec 2022 19:50:07 +0100 Subject: [PATCH] Entra circuito se hai aggiunto bene o servizio --- .../CGridTableRec/CGridTableRec.vue | 1 + .../CMyRecCircuitCard/CMyRecCircuitCard.ts | 9 +- .../CPresentazione/CPresentazione.vue | 8 + src/components/CStatusReg/CStatusReg.ts | 4 +- src/statics/lang/it.js | 1 + src/views/user/mycircuit/mycircuit.vue | 460 ++++++++++++------ src/views/user/myprofile/myprofile.ts | 4 +- src/views/user/myprofile/myprofile.vue | 3 + 8 files changed, 348 insertions(+), 142 deletions(-) diff --git a/src/components/CGridTableRec/CGridTableRec.vue b/src/components/CGridTableRec/CGridTableRec.vue index 254d7d86..2e99eb2b 100755 --- a/src/components/CGridTableRec/CGridTableRec.vue +++ b/src/components/CGridTableRec/CGridTableRec.vue @@ -1093,6 +1093,7 @@ v-model="newRecordBool" @hide="hidewindow" :maximized="$q.screen.lt.sm" + permanent > diff --git a/src/components/CMyRecCircuitCard/CMyRecCircuitCard.ts b/src/components/CMyRecCircuitCard/CMyRecCircuitCard.ts index e204a215..7bf9e65e 100755 --- a/src/components/CMyRecCircuitCard/CMyRecCircuitCard.ts +++ b/src/components/CMyRecCircuitCard/CMyRecCircuitCard.ts @@ -12,6 +12,7 @@ import { useQuasar } from 'quasar' import { useI18n } from '@/boot/i18n' import { CMyCardPopup } from '@/components/CMyCardPopup' import { CCurrencyValue } from '@/components/CCurrencyValue' +import { useRouter } from 'vue-router' // import { useRouter } from 'vue-router' export default defineComponent({ @@ -43,6 +44,8 @@ export default defineComponent({ const showingtooltip = ref(false) + const $router = useRouter() + watch(() => props.prop_myrec, (newval, oldval) => { mounted() @@ -62,13 +65,17 @@ export default defineComponent({ emit('cmdext', cmd, val1, val2) } + function naviga(path: string) { + $router.push(path) + } + onMounted(mounted) return { t, circuit, costanti, - // naviga, + naviga, setCmd, shared_consts, userStore, diff --git a/src/components/CPresentazione/CPresentazione.vue b/src/components/CPresentazione/CPresentazione.vue index a857b49e..5057bf7d 100755 --- a/src/components/CPresentazione/CPresentazione.vue +++ b/src/components/CPresentazione/CPresentazione.vue @@ -102,6 +102,10 @@
+ + @@ -174,6 +178,10 @@
+ + diff --git a/src/components/CStatusReg/CStatusReg.ts b/src/components/CStatusReg/CStatusReg.ts index 0c0a19c9..d12aee3b 100755 --- a/src/components/CStatusReg/CStatusReg.ts +++ b/src/components/CStatusReg/CStatusReg.ts @@ -85,8 +85,8 @@ export default defineComponent({ function checkifpolling() { if (userStore.my.profile) { - if (!tools.isUserOk() && tools.appid() === tools.IDAPP_RISO) - NUMSEC_TO_POLLING.value = 10 + //if (!tools.isUserOk() && tools.appid() === tools.IDAPP_RISO) + // NUMSEC_TO_POLLING.value = 10 } if (eseguipolling.value) { diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index c27d3a1c..ca607641 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -218,6 +218,7 @@ const msg_it = { 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_start_circuit: 'Per poter inviare monete è necessario aggiungere almeno un Bene o Servizio, con la voglia di proporsi ed accettare i RIS come scambio.', + insertgoodorservices_to_enter_circuit: 'Per poter entrare nel Circuito è necessario aggiungere almeno un Bene o Servizio, con la voglia di proporsi ed accettare i RIS come scambio.', deletedgroup: 'Gruppo Eliminato', domanda_addtofriend: 'Aggiungere agli amici {username}?', domanda_addtogroup: 'Aggiungi {username} al gruppo {groupname}?', diff --git a/src/views/user/mycircuit/mycircuit.vue b/src/views/user/mycircuit/mycircuit.vue index a8bc161d..ee8725b1 100755 --- a/src/views/user/mycircuit/mycircuit.vue +++ b/src/views/user/mycircuit/mycircuit.vue @@ -1,11 +1,13 @@