se sei sulla pagina, la notifica di "gia letto" non viene settata.
- aggiunto "RIS" ai tipi di contributi - Amicizia accettata compare 2 volte nelle notifiche - Bottone click sull utente non funziona
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="12"
|
APP_ID="12"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="13"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="14"
|
APP_ID="14"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_VERSION="0.5.9"
|
APP_VERSION="0.5.12"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="14"
|
APP_ID="14"
|
||||||
DIRECTORY_LOCAL=newfreeplanet
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
|||||||
@@ -362,11 +362,11 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
|
|
||||||
$router.beforeResolve((to: any) => {
|
$router.beforeResolve((to: any) => {
|
||||||
// console.log('beforeResolve', visupagedialog.value, 'to', to)
|
console.log('beforeResolve', visupagedialog.value, 'to', to)
|
||||||
|
|
||||||
if (visupagedialog.value && !to.meta.newpage) {
|
if (visupagedialog.value && !to.meta.newpage) {
|
||||||
visupagedialog.value = false
|
// visupagedialog.value = false
|
||||||
return false
|
// return false
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -741,7 +741,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</q-table>
|
</q-table>
|
||||||
|
|
||||||
<q-dialog v-model="visupagedialog" @hide="hidewindow" :maximized="$q.screen.lt.sm">
|
<q-dialog v-model="visupagedialog" @hide="hidewindow" :maximized="$q.screen.lt.sm" persistent>
|
||||||
<CMyCardGrpPopup
|
<CMyCardGrpPopup
|
||||||
v-if="mytable === toolsext.TABMYGROUPS"
|
v-if="mytable === toolsext.TABMYGROUPS"
|
||||||
:table="mytable"
|
:table="mytable"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.testo {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,26 +5,27 @@
|
|||||||
:tips="t('account.saldo_tips', {fido: qtarem, symbol})"
|
:tips="t('account.saldo_tips', {fido: qtarem, symbol})"
|
||||||
:color="color"
|
:color="color"
|
||||||
:value="saldo"
|
:value="saldo"
|
||||||
:valueextra="account && account.notifspending ? `* `: ''"
|
:valueextra="account && account.notifspending.length > 0 ? `* `: ''"
|
||||||
:label="t('account.saldo') + ` (` + t('account.dispon') + `: ` + qtarem + `)`">
|
:label="t('account.saldo') + ` (` + t('account.dispon') + `: ` + qtarem + `)`">
|
||||||
|
|
||||||
</CCurrencyValue>
|
</CCurrencyValue>
|
||||||
|
|
||||||
<div v-if="account && account.notifspending" :class="`text-h5 bordo_stondato_stretto full-width`"
|
|
||||||
|
<div v-if="account && account.notifspending.length > 0" :class="`text-h5 bordo_stondato_stretto full-width`"
|
||||||
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
||||||
<div class="text-center text-h7-dense text-italic text-grey-14">
|
<div class="text-center text-h7-dense text-italic text-grey-14">
|
||||||
{{ t('movement.pendingtransaction') }}
|
{{ t('movement.pendingtransaction') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="(myrec, index) in account.notifspending" :key="myrec._id">
|
<div v-for="(myrec, index) in account.notifspending" :key="myrec._id">
|
||||||
<div class="row justify-evenly items-center q-gutter-xs ">
|
<div class="row justify-evenly items-center bordo_stondato_pending">
|
||||||
<span v-for="(mycol, indcol) of colTableNotifCoins" :key="indcol">
|
<span v-for="(mycol, indcol) of colTableNotifCoins" :key="indcol">
|
||||||
<div
|
<div
|
||||||
class="col"
|
class="col"
|
||||||
style="display: flex;"
|
style="display: flex;"
|
||||||
v-if="(mycol.visible && (tools.checkIfShowField(mycol, tools.TIPOVIS_SHOW_RECORD, false, tools.getValue(myrec, mycol.field, mycol.subfield))))">
|
v-if="(mycol.visible && (tools.checkIfShowField(mycol, tools.TIPOVIS_SHOW_RECORD, false, tools.getValue(myrec, mycol.field, mycol.subfield))))">
|
||||||
|
|
||||||
<span v-if="mycol.name === 'datenotif'">{{ index + 1 }}</span>
|
<span class="testo" v-if="mycol.name === 'datenotif'">{{ index + 1 }}°</span>
|
||||||
|
|
||||||
<CMyFieldRec
|
<CMyFieldRec
|
||||||
table="sendnotifs"
|
table="sendnotifs"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const from_username = ref(userStore.my.username)
|
const from_username = ref(userStore.my.username)
|
||||||
const circuitsel = ref('')
|
const circuitsel = ref('')
|
||||||
const qty = ref(<number>1)
|
const qty = ref(<string|number>'')
|
||||||
const causal = ref('')
|
const causal = ref('')
|
||||||
const bothcircuits = ref(<any>[])
|
const bothcircuits = ref(<any>[])
|
||||||
|
|
||||||
@@ -51,6 +51,7 @@ export default defineComponent({
|
|||||||
const arrayMarkerLabel = ref(<any>[])
|
const arrayMarkerLabel = ref(<any>[])
|
||||||
|
|
||||||
const qtyRef = ref(<any>null)
|
const qtyRef = ref(<any>null)
|
||||||
|
const causalRef = ref(<any>null)
|
||||||
|
|
||||||
watch(() => circuitsel.value, (newval, oldval) => {
|
watch(() => circuitsel.value, (newval, oldval) => {
|
||||||
tools.setCookie(tools.CIRCUIT_USE, newval)
|
tools.setCookie(tools.CIRCUIT_USE, newval)
|
||||||
@@ -165,6 +166,7 @@ export default defineComponent({
|
|||||||
arrayMarkerLabel,
|
arrayMarkerLabel,
|
||||||
remainingCoins,
|
remainingCoins,
|
||||||
qtyRef,
|
qtyRef,
|
||||||
|
causalRef,
|
||||||
maxsendable,
|
maxsendable,
|
||||||
circuitStore,
|
circuitStore,
|
||||||
numstep,
|
numstep,
|
||||||
|
|||||||
@@ -37,13 +37,13 @@
|
|||||||
<q-input
|
<q-input
|
||||||
ref="qtyRef"
|
ref="qtyRef"
|
||||||
class="q-py-sm text-h5"
|
class="q-py-sm text-h5"
|
||||||
outlined v-model="qty" type="text"
|
outlined v-model="qty" type="number"
|
||||||
:rules="[ val => val <= circuitStore.getRemainingCoinsToSend(accountloaded) || t('circuit.qta_remaining_to_send', { maxqta: circuitStore.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol })]"
|
:rules="[
|
||||||
|
val => val <= circuitStore.getRemainingCoinsToSend(accountloaded) || t('circuit.qta_remaining_to_send', { maxqta: circuitStore.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol }),
|
||||||
|
val => val > 0 || t('circuit.qta_not_valid')]"
|
||||||
:label="t('movement.amount_to_send', {qtamax: circuitStore.getRemainingCoinsToSend(accountloaded) ? circuitStore.getRemainingCoinsToSend(accountloaded).toFixed(2) : 0 + ` ` + circuitloaded.symbol})"
|
:label="t('movement.amount_to_send', {qtamax: circuitStore.getRemainingCoinsToSend(accountloaded) ? circuitStore.getRemainingCoinsToSend(accountloaded).toFixed(2) : 0 + ` ` + circuitloaded.symbol})"
|
||||||
mask="#.##"
|
|
||||||
fill-mask="0"
|
|
||||||
reverse-fill-mask
|
|
||||||
input-class="text-right"
|
input-class="text-right"
|
||||||
|
v-on:keyup.enter="$event.target.nextElementSibling.focus()"
|
||||||
>
|
>
|
||||||
<!--val => val > circuitStore.getMaxCoinsToSend(accountloaded) || t('circuit.qta_max_to_send', { maxqta: tools.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol })]" -->
|
<!--val => val > circuitStore.getMaxCoinsToSend(accountloaded) || t('circuit.qta_max_to_send', { maxqta: tools.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol })]" -->
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
@@ -60,9 +60,8 @@
|
|||||||
v-model="qty"
|
v-model="qty"
|
||||||
color="green"
|
color="green"
|
||||||
markers
|
markers
|
||||||
readonly
|
|
||||||
track-size="10px"
|
track-size="10px"
|
||||||
:step="numstep"
|
:step="numstep/2"
|
||||||
:marker-labels="arrayMarkerLabel"
|
:marker-labels="arrayMarkerLabel"
|
||||||
label-always
|
label-always
|
||||||
:label-value="priceLabel"
|
:label-value="priceLabel"
|
||||||
@@ -74,7 +73,9 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-input v-model="causal" label="Note" class="q-my-sm full-width">
|
<q-input
|
||||||
|
ref="causalRef"
|
||||||
|
v-model="causal" label="Note" class="q-my-sm full-width">
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|||||||
@@ -766,6 +766,16 @@ $heightBtn: 100%;
|
|||||||
border: solid 3px #49b502;
|
border: solid 3px #49b502;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bordo_stondato_pending{
|
||||||
|
margin: 4px;
|
||||||
|
border-radius: 3rem;
|
||||||
|
padding-left: 14px;
|
||||||
|
padding-right: 14px;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
border: solid 1px #4a6598;
|
||||||
|
}
|
||||||
|
|
||||||
.bordo_stondato_circuiti{
|
.bordo_stondato_circuiti{
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
border-radius: 1.15rem;
|
border-radius: 1.15rem;
|
||||||
|
|||||||
@@ -19,24 +19,12 @@
|
|||||||
<q-btn round dense icon="fas fa-pencil-alt" class="q-mx-xs">
|
<q-btn round dense icon="fas fa-pencil-alt" class="q-mx-xs">
|
||||||
<q-menu style="min-width: 200px">
|
<q-menu style="min-width: 200px">
|
||||||
<q-list style="">
|
<q-list style="">
|
||||||
<q-item clickable v-close-popup to="/notifs">
|
|
||||||
<q-item-section side>
|
|
||||||
<q-icon name="fas fa-cog"/>
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{ $t('notifs.settings') }}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item clickable v-close-popup @click="notifStore.setAllRead(username, shared_consts.QualiNotifs.CIRCUITS)">
|
<q-item clickable v-close-popup @click="notifStore.setAllRead(username, shared_consts.QualiNotifs.CIRCUITS)">
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
<q-icon name="fas fa-check"/>
|
<q-icon name="fas fa-check"/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t('notifs.setallread') }}</q-item-section>
|
<q-item-section>{{ $t('notifs.setallread') }}</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="notifStore.deleteAll(username, shared_consts.QualiNotifs.CIRCUITS)">
|
|
||||||
<q-item-section side>
|
|
||||||
<q-icon name="fas fa-trash-alt"/>
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{ $t('notifs.deleteall') }}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
@@ -160,20 +148,14 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-btn dense rounded icon="fas fa-ellipsis-h">
|
<q-btn v-if="!notif.read" dense rounded icon="fas fa-ellipsis-h">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 150px">
|
<q-list style="min-width: 150px">
|
||||||
<q-item clickable v-close-popup @click="notifStore.deleteRec(username, notif._id)">
|
<q-item clickable v-close-popup @click="notifStore.setRead(notif._id)">
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
<q-icon name="fas fa-trash-alt"/>
|
<q-icon name="fas fa-trash-alt"/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t('notifs.delete_notif') }}</q-item-section>
|
<q-item-section>{{ $t('notifs.read') }}</q-item-section>
|
||||||
</q-item>
|
|
||||||
<q-item clickable v-close-popup @click="notifStore.deactivateRec(notif._id)">
|
|
||||||
<q-item-section side>
|
|
||||||
<q-icon name="fas fa-bell-slash"/>
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{ $t('notifs.deactivate_notif') }}</q-item-section>
|
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
|
|||||||
@@ -146,6 +146,12 @@
|
|||||||
<q-btn dense rounded icon="fas fa-ellipsis-h">
|
<q-btn dense rounded icon="fas fa-ellipsis-h">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 150px">
|
<q-list style="min-width: 150px">
|
||||||
|
<q-item clickable v-close-popup @click="notifStore.setRead(notif._id)">
|
||||||
|
<q-item-section side>
|
||||||
|
<q-icon name="fas fa-trash-alt"/>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>{{ $t('notifs.read') }}</q-item-section>
|
||||||
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="notifStore.deleteRec(username, notif._id)">
|
<q-item clickable v-close-popup @click="notifStore.deleteRec(username, notif._id)">
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
<q-icon name="fas fa-trash-alt"/>
|
<q-icon name="fas fa-trash-alt"/>
|
||||||
|
|||||||
@@ -792,6 +792,7 @@ const msg_it = {
|
|||||||
new_event: 'Nuovo Evento',
|
new_event: 'Nuovo Evento',
|
||||||
new_friends: 'Nuove Richieste di Amicizia',
|
new_friends: 'Nuove Richieste di Amicizia',
|
||||||
delete_notif: 'Elimina questa notifica',
|
delete_notif: 'Elimina questa notifica',
|
||||||
|
read: 'Segna come letto',
|
||||||
deactivate_notif: 'Smetti di ricevere notifiche come questa',
|
deactivate_notif: 'Smetti di ricevere notifiche come questa',
|
||||||
select_provinces: 'Scegli le Provincie da cui ricevere le notifiche',
|
select_provinces: 'Scegli le Provincie da cui ricevere le notifiche',
|
||||||
select_regions: 'Scegli le Regioni da cui ricevere le notifiche',
|
select_regions: 'Scegli le Regioni da cui ricevere le notifiche',
|
||||||
@@ -1157,7 +1158,7 @@ const msg_it = {
|
|||||||
cancel_req: 'Annullata la richiesta al Circuito {circuitname}',
|
cancel_req: 'Annullata la richiesta al Circuito {circuitname}',
|
||||||
remove_from_mylist: 'Rimuovi dal Circuito',
|
remove_from_mylist: 'Rimuovi dal Circuito',
|
||||||
reject_ask: 'Rifiuta l\'ingresso dal Circuito',
|
reject_ask: 'Rifiuta l\'ingresso dal Circuito',
|
||||||
domanda_exit_fromcircuit: 'Uscire dal CIrcuito {circuitname} ?',
|
domanda_exit_fromcircuit: 'Sei veramente sicuro di voler uscire dal Circuito {circuitname} ?',
|
||||||
domanda_addadminofcircuit: 'Aggiungere {username} come Amministratore del CIrcuito {circuitname} ?',
|
domanda_addadminofcircuit: 'Aggiungere {username} come Amministratore del CIrcuito {circuitname} ?',
|
||||||
domanda_removeadminofcircuit: 'Rimuovere {username} dall\' incarico di Amministratore del CIrcuito {circuitname} ?',
|
domanda_removeadminofcircuit: 'Rimuovere {username} dall\' incarico di Amministratore del CIrcuito {circuitname} ?',
|
||||||
domanda_refuse_circuit: 'Rifiutare la richiesta di {username} per entrare nel Circuito {circuitname}?',
|
domanda_refuse_circuit: 'Rifiutare la richiesta di {username} per entrare nel Circuito {circuitname}?',
|
||||||
@@ -1175,6 +1176,7 @@ const msg_it = {
|
|||||||
refuse_coins: 'Rifiuta Monete',
|
refuse_coins: 'Rifiuta Monete',
|
||||||
movements: 'Movimenti',
|
movements: 'Movimenti',
|
||||||
qta_remaining_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
|
qta_remaining_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
|
||||||
|
qta_not_valid: 'Quantità non valida',
|
||||||
qta_max_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
|
qta_max_to_send: 'Quantità massima inviabile {maxqta} {symbol}',
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1211,6 +1213,8 @@ const msg_it = {
|
|||||||
from: 'Inviate da:',
|
from: 'Inviate da:',
|
||||||
to: 'A favore di:',
|
to: 'A favore di:',
|
||||||
pendingtransaction: '* Transazioni Pendenti',
|
pendingtransaction: '* Transazioni Pendenti',
|
||||||
|
onlymymov: 'Mostra solo i miei movimenti',
|
||||||
|
showsaldi: 'Mostra i Saldi dei membri',
|
||||||
},
|
},
|
||||||
editor: {
|
editor: {
|
||||||
showtool: 'Mostra strumenti per formattare il testo',
|
showtool: 'Mostra strumenti per formattare il testo',
|
||||||
|
|||||||
@@ -565,6 +565,18 @@ export const colmyMovementTable = [
|
|||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
export const colmyUserPeopleSaldi = [
|
||||||
|
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
||||||
|
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
||||||
|
// AddCol({ name: 'name', label_trans: 'reg.name' }),
|
||||||
|
AddCol({
|
||||||
|
name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false,
|
||||||
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
|
||||||
|
}),
|
||||||
|
AddCol({ name: 'saldo', label_trans: 'account.saldo', fieldtype: costanti.FieldType.currency }),
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
export const colmyUserPeople = [
|
export const colmyUserPeople = [
|
||||||
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
// AddCol({ name: '_id', label_trans: 'reg.id' }),
|
||||||
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
||||||
@@ -2576,6 +2588,7 @@ export const colmyUserCircuit = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export const colTableNotifCoins = [
|
export const colTableNotifCoins = [
|
||||||
|
// AddCol({ name: 'date_created', label_trans: 'sendnotifs.date_created', fieldtype: costanti.FieldType.date }),
|
||||||
AddCol({ name: 'datenotif', label_trans: 'sendnotifs.datenotif', fieldtype: costanti.FieldType.date }),
|
AddCol({ name: 'datenotif', label_trans: 'sendnotifs.datenotif', fieldtype: costanti.FieldType.date }),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'extrarec.dest',
|
name: 'extrarec.dest',
|
||||||
|
|||||||
@@ -5297,6 +5297,7 @@ export const tools = {
|
|||||||
async sendCoinsByCircuit($q: any, circuit: ICircuit, sendcoinrec: ISendCoin) {
|
async sendCoinsByCircuit($q: any, circuit: ICircuit, sendcoinrec: ISendCoin) {
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
const notifStore = useNotifStore()
|
||||||
|
|
||||||
const username = userStore.my.username
|
const username = userStore.my.username
|
||||||
|
|
||||||
@@ -5326,6 +5327,7 @@ export const tools = {
|
|||||||
} else {
|
} else {
|
||||||
tools.showNegativeNotif($q, res.errormsg)
|
tools.showNegativeNotif($q, res.errormsg)
|
||||||
}
|
}
|
||||||
|
notifStore.updateNotification = true
|
||||||
this.updateMyData(res)
|
this.updateMyData(res)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -118,6 +118,25 @@ export const useNotifStore = defineStore('NotifStore', {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setRead(_id: string) {
|
||||||
|
return Api.SendReq(`/sendnotif/set/${_id}/${process.env.APP_ID}`, 'GET', null)
|
||||||
|
.then((res) => {
|
||||||
|
// console.log('res', res)
|
||||||
|
if (res) {
|
||||||
|
const rec = this.last_notifs.find((rec: any) => rec._id === _id)
|
||||||
|
if (rec) {
|
||||||
|
rec.read = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.updateArrNotif()
|
||||||
|
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error(error)
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
deleteRec(username: string, id: string) {
|
deleteRec(username: string, id: string) {
|
||||||
return Api.SendReq(`/sendnotif/del/${username}/${id}/${process.env.APP_ID}`, 'GET', null)
|
return Api.SendReq(`/sendnotif/del/${username}/${id}/${process.env.APP_ID}`, 'GET', null)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -21,15 +21,17 @@ import { CNotifAtTop } from '@src/components/CNotifAtTop'
|
|||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
import { ICity, IFriends, ICircuit, ISearchList, IUserFields, IAccount } from 'model'
|
import { ICity, IFriends, ICircuit, ISearchList, IUserFields, IAccount } from 'model'
|
||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import { colmyUserPeople, colmyUserCircuit, colmyMovement, colmyMovementTable } from '@store/Modules/fieldsTable'
|
import { colmyUserPeople, colmyUserPeopleSaldi, colmyUserCircuit, colmyMovement, colmyMovementTable } from '@store/Modules/fieldsTable'
|
||||||
import { useNotifStore } from '@store/NotifStore'
|
import { useNotifStore } from '@store/NotifStore'
|
||||||
import { useCircuitStore } from '@store/CircuitStore'
|
import { useCircuitStore } from '@store/CircuitStore'
|
||||||
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'mycircuit',
|
name: 'mycircuit',
|
||||||
components: { CProfile, CTitleBanner, CMyFieldRec, CSkill, CDateTime, CMyFriends,
|
components: {
|
||||||
CGridTableRec, CMyUser, CCheckIfIsLogged, CCurrencyValue, CSaldo, CNotifAtTop },
|
CProfile, CTitleBanner, CMyFieldRec, CSkill, CDateTime, CMyFriends,
|
||||||
|
CGridTableRec, CMyUser, CCheckIfIsLogged, CCurrencyValue, CSaldo, CNotifAtTop
|
||||||
|
},
|
||||||
props: {},
|
props: {},
|
||||||
setup() {
|
setup() {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
@@ -50,8 +52,8 @@ export default defineComponent({
|
|||||||
const filtroutente = ref(<any[]>[])
|
const filtroutente = ref(<any[]>[])
|
||||||
const showPic = ref(false)
|
const showPic = ref(false)
|
||||||
|
|
||||||
const circuit = ref(<ICircuit|null>{})
|
const circuit = ref(<ICircuit | null>{})
|
||||||
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null )
|
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null)
|
||||||
const mystatus = ref(<number>0)
|
const mystatus = ref(<number>0)
|
||||||
const users_in_circuit = ref(<IFriends[]>[])
|
const users_in_circuit = ref(<IFriends[]>[])
|
||||||
|
|
||||||
@@ -63,6 +65,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const tabgrp = ref('info')
|
const tabgrp = ref('info')
|
||||||
const tabmembers = ref('all')
|
const tabmembers = ref('all')
|
||||||
|
const showsaldi = ref(false)
|
||||||
const tab = ref('membri')
|
const tab = ref('membri')
|
||||||
|
|
||||||
const arrfilterand: any = ref([])
|
const arrfilterand: any = ref([])
|
||||||
@@ -110,7 +113,17 @@ export default defineComponent({
|
|||||||
|
|
||||||
searchList.value = []
|
searchList.value = []
|
||||||
if (circuit.value) {
|
if (circuit.value) {
|
||||||
filtercustom.value = [{ 'profile.mycircuits': { $elemMatch: { circuitname: { $eq: circuit.value.name } } } }]
|
filtercustom.value = [
|
||||||
|
{
|
||||||
|
'profile.mycircuits':
|
||||||
|
{
|
||||||
|
$elemMatch: {
|
||||||
|
circuitname:
|
||||||
|
{ $eq: circuit.value.name }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
arrfilterand.value = []
|
arrfilterand.value = []
|
||||||
@@ -149,6 +162,7 @@ export default defineComponent({
|
|||||||
'profile.img': 1,
|
'profile.img': 1,
|
||||||
'profile.mycircuits': 1,
|
'profile.mycircuits': 1,
|
||||||
'profile.qualifica': 1,
|
'profile.qualifica': 1,
|
||||||
|
'account.saldo': 1,
|
||||||
reported: 1,
|
reported: 1,
|
||||||
date_report: 1,
|
date_report: 1,
|
||||||
username_who_report: 1,
|
username_who_report: 1,
|
||||||
@@ -190,14 +204,15 @@ export default defineComponent({
|
|||||||
function numUsers() {
|
function numUsers() {
|
||||||
return users_in_circuit.value ? users_in_circuit.value.length : 0
|
return users_in_circuit.value ? users_in_circuit.value.length : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function numAdmins() {
|
function numAdmins() {
|
||||||
return (circuit.value && circuit.value.admins) ? circuit.value.admins.length : 0
|
return (circuit.value && circuit.value.admins) ? circuit.value.admins.length : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function listaAdmins() {
|
function listaAdmins() {
|
||||||
return (circuit.value && circuit.value.admins) ? circuit.value.admins.map((rec) => rec.username).join(', ') : ''
|
return (circuit.value && circuit.value.admins) ? circuit.value.admins.map((rec) => rec.username).join(', ') : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onMounted(mounted)
|
onMounted(mounted)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -222,6 +237,7 @@ export default defineComponent({
|
|||||||
colmyMovement,
|
colmyMovement,
|
||||||
colmyMovementTable,
|
colmyMovementTable,
|
||||||
colmyUserPeople,
|
colmyUserPeople,
|
||||||
|
colmyUserPeopleSaldi,
|
||||||
colmyUserCircuit,
|
colmyUserCircuit,
|
||||||
extraparams,
|
extraparams,
|
||||||
extraparams_rich,
|
extraparams_rich,
|
||||||
@@ -244,6 +260,7 @@ export default defineComponent({
|
|||||||
saldo,
|
saldo,
|
||||||
showonlymine,
|
showonlymine,
|
||||||
tabellare,
|
tabellare,
|
||||||
|
showsaldi,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list v-if="true" style="min-width: 150px">
|
<q-list v-if="true" style="min-width: 150px">
|
||||||
<q-item clickable v-close-popup
|
<q-item clickable v-close-popup
|
||||||
|
v-if="saldo === 0"
|
||||||
@click="tools.removeFromMyCircuits($q, userStore.my.username, circuit.name, $t('circuit.domanda_exit_fromcircuit', {circuitname: circuit.name }))">
|
@click="tools.removeFromMyCircuits($q, userStore.my.username, circuit.name, $t('circuit.domanda_exit_fromcircuit', {circuitname: circuit.name }))">
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="negative" name="fas fa-user-minus"/>
|
<q-icon color="negative" name="fas fa-user-minus"/>
|
||||||
@@ -108,7 +109,7 @@
|
|||||||
<q-tab-panels v-model="tabgrp" animated>
|
<q-tab-panels v-model="tabgrp" animated>
|
||||||
<q-tab-panel name="mov">
|
<q-tab-panel name="mov">
|
||||||
|
|
||||||
<q-toggle v-model="showonlymine" label="Mostra solo i miei movimenti"></q-toggle>
|
<q-toggle v-model="showonlymine" :label="t('movement.onlymymov')"></q-toggle>
|
||||||
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
||||||
|
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
@@ -335,11 +336,13 @@
|
|||||||
<q-tab-panels v-model="tabmembers" animated>
|
<q-tab-panels v-model="tabmembers" animated>
|
||||||
<q-tab-panel name="all">
|
<q-tab-panel name="all">
|
||||||
|
|
||||||
|
<!--<q-toggle v-model="showsaldi" :label="t('movement.showsaldi')"></q-toggle>-->
|
||||||
|
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
ref="tabMembri"
|
ref="tabMembri"
|
||||||
prop_mytable="users"
|
prop_mytable="users"
|
||||||
prop_mytitle=""
|
prop_mytitle=""
|
||||||
:prop_mycolumns="colmyUserPeople"
|
:prop_mycolumns="showsaldi ? colmyUserPeopleSaldi : colmyUserPeople"
|
||||||
prop_colkey="_id"
|
prop_colkey="_id"
|
||||||
col_title="username"
|
col_title="username"
|
||||||
:vertical="costanti.VISUTABLE_LISTA"
|
:vertical="costanti.VISUTABLE_LISTA"
|
||||||
|
|||||||
Reference in New Issue
Block a user