- Transazioni Pendenti (all'Admin compaiono tutte quelle pendenti e con la possibilità di accettarle)

This commit is contained in:
Surya Paolo
2024-09-29 23:26:44 +02:00
parent 5c0d0db45b
commit 744812eb39
8 changed files with 127 additions and 34 deletions

View File

@@ -19,3 +19,8 @@
.rigamov { .rigamov {
background-color: lightgray; background-color: lightgray;
} }
.causale {
font-weight: bold;
margin-bottom: 8px;
}

View File

@@ -18,7 +18,9 @@
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label v-if="mov.causal">{{ mov.causal }}</q-item-label> <q-item-label class="causale" v-if="mov.causal">{{
mov.causal
}}</q-item-label>
<q-item-label lines="1"> <q-item-label lines="1">
{{ t('movement.from') }} <span class="myfrom">{{ mov.myfrom }}</span> {{ t('movement.from') }} <span class="myfrom">{{ mov.myfrom }}</span>
</q-item-label> </q-item-label>

View File

@@ -2,7 +2,11 @@
<div class="q-ma-sm text-center"> <div class="q-ma-sm text-center">
<q-btn <q-btn
v-if="num_notifs > 0" v-if="num_notifs > 0"
:label="(num_notifs > 1) ? t('circuit.mov_in_arrivo', {mov: num_notifs}) : t('circuit.ris_in_arrivo')" :label="
num_notifs > 1
? t('circuit.mov_in_arrivo', { mov: num_notifs })
: t('circuit.ris_in_arrivo')
"
@click="shownotif = true" @click="shownotif = true"
icon="fas fa-coins" icon="fas fa-coins"
rounded rounded

View File

@@ -111,8 +111,15 @@ export default defineComponent({
function getlastnotifcoins(username: string): any { function getlastnotifcoins(username: string): any {
// Get msg for this chat // Get msg for this chat
if (notifStore.last_notifcoins) if (notifStore.last_notifcoins) {
return notifStore.last_notifcoins.find((rec: INotif) => rec.dest === username) if (userStore.isAdmin) {
console.log('userStore.isAdmin', userStore.isAdmin, notifStore.last_notifcoins)
return notifStore.last_notifcoins
} else {
return notifStore.last_notifcoins.find((rec: INotif) => rec.dest === username)
}
}
// return users_msg_saved[username] // return users_msg_saved[username]
} }

View File

@@ -1465,6 +1465,7 @@ const msg_it = {
movements: 'Movimenti', movements: 'Movimenti',
ris_in_arrivo: '👉🏻 Apri, hai RIS da ricevere !', ris_in_arrivo: '👉🏻 Apri, hai RIS da ricevere !',
mov_in_arrivo: '👉🏻 Apri {mov} transazioni in RIS!', mov_in_arrivo: '👉🏻 Apri {mov} transazioni in RIS!',
mov_in_arrivo_sent: '👉🏻 {mov} transazioni UTENTI in RIS!',
transaz: 'mov', transaz: 'mov',
movements_made: 'Movimenti effettuati', movements_made: 'Movimenti effettuati',
contocomunitario: 'Conto Comunitario', contocomunitario: 'Conto Comunitario',

View File

@@ -109,7 +109,8 @@ export const useCircuitStore = defineStore('CircuitStore', {
let arrcircnaz = this.listcircuits.filter((rec: ICircuit) => rec.showAlways) let arrcircnaz = this.listcircuits.filter((rec: ICircuit) => rec.showAlways)
for (const circ of arrcircnaz) { for (const circ of arrcircnaz) {
circ.account = userStore.my.profile.useraccounts.find((rec: IAccount) => rec.circuitId === circ._id) if (userStore.my.profile.useraccounts)
circ.account = userStore.my.profile.useraccounts.find((rec: IAccount) => rec.circuitId === circ._id)
} }
return arrcircnaz return arrcircnaz

View File

@@ -655,6 +655,22 @@
></q-btn> ></q-btn>
<br /> <br />
</div> </div>
<div class="row">
<q-btn
label="Rimuovi Transazioni Pendenti"
color="primary"
@click="EseguiFunz('RemovePendentTransactions')"
></q-btn>
<br />
</div>
<div class="row">
<q-btn
label="Rimuovi Vecchie Notifiche (indietro di 3 mesi)"
color="primary"
@click="EseguiFunz('RemoveOldNotif90')"
></q-btn>
<br />
</div>
<div class="row"> <div class="row">
<q-btn <q-btn
label="Correggi Transazioni Circuiti" label="Correggi Transazioni Circuiti"

View File

@@ -6,9 +6,8 @@
"tests", "tests",
"src-pwa", "src-pwa",
"public/js", "public/js",
// these are the eslint-only inclusions // these are the eslint-only inclusions
"**/*.config.js" // for *.config.js files "**/*.config.js" // for *.config.js files
], ],
"compilerOptions": { "compilerOptions": {
"sourceMap": true, "sourceMap": true,
@@ -16,37 +15,95 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@components": ["src/components/index.ts"], "@components": [
"@costanti": ["src/store/Modules/costanti.ts"], "src/components/index.ts"
"@boot": ["src/boot/*"], ],
"@views": ["src/views/*"], "@costanti": [
"@src/*": ["src/*"], "src/store/Modules/costanti.ts"
"@/*": ["src/*"], ],
"@css": ["src/public/css/variables.scss"], "@boot": [
"@icons": ["src/public/icons/*"], "src/boot/*"
"@images": ["src/public/images/*"], ],
"@maps": ["src/public/maps/*"], "@views": [
"@classes": ["src/classes/index.ts"], "src/views/*"
"@utils": ["src/utils/index.ts"], ],
"@router": ["src/router/index.ts"], "@src/*": [
"@validators": ["src/utils/validators.ts"], "src/*"
"@methods": ["src/utils/methods.ts"], ],
"@api": ["src/store/Api/index.ts"], "@/*": [
"@api/*": ["src/store/Api/*"], "src/*"
"@paths": ["src/store/Api/ApiRoutes.ts"], ],
"@storemod": ["src/store/Modules/*"], "@css": [
"@store/*": ["src/store/*"], "src/public/css/variables.scss"
"@modules": ["src/store/Modules/index.ts"], ],
"@model": ["src/model/index.ts"], "@icons": [
"@model/*": ["src/model/*"], "src/public/icons/*"
"model": ["src/model/index.ts"], ],
"enums": ["src/enums/*"], "@images": [
"src/public/images/*"
],
"@maps": [
"src/public/maps/*"
],
"@classes": [
"src/classes/index.ts"
],
"@utils": [
"src/utils/index.ts"
],
"@router": [
"src/router/index.ts"
],
"@validators": [
"src/utils/validators.ts"
],
"@methods": [
"src/utils/methods.ts"
],
"@api": [
"src/store/Api/index.ts"
],
"@api/*": [
"src/store/Api/*"
],
"@paths": [
"src/store/Api/ApiRoutes.ts"
],
"@storemod": [
"src/store/Modules/*"
],
"@store/*": [
"src/store/*"
],
"@modules": [
"src/store/Modules/index.ts"
],
"@model": [
"src/model/index.ts"
],
"@model/*": [
"src/model/*"
],
"model": [
"src/model/index.ts"
],
"enums": [
"src/enums/*"
],
"crypto": [ "crypto": [
"node_modules/bcryptjs" "node_modules/bcryptjs"
], ],
} }
}, },
"exclude": [ "exclude": [
"node_modules" "node_modules",
"dist",
"build",
"public/js",
"_ALL_SITES",
"__riso.app",
"docs",
"statics",
"upload",
] ]
} }