- Transazioni Pendenti (all'Admin compaiono tutte quelle pendenti e con la possibilità di accettarle)
This commit is contained in:
@@ -18,4 +18,9 @@
|
||||
|
||||
.rigamov {
|
||||
background-color: lightgray;
|
||||
}
|
||||
|
||||
.causale {
|
||||
font-weight: bold;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
@@ -18,7 +18,9 @@
|
||||
</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">
|
||||
{{ t('movement.from') }} <span class="myfrom">{{ mov.myfrom }}</span>
|
||||
</q-item-label>
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<div class="q-ma-sm text-center">
|
||||
<q-btn
|
||||
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"
|
||||
icon="fas fa-coins"
|
||||
rounded
|
||||
|
||||
@@ -111,8 +111,15 @@ export default defineComponent({
|
||||
|
||||
function getlastnotifcoins(username: string): any {
|
||||
// Get msg for this chat
|
||||
if (notifStore.last_notifcoins)
|
||||
return notifStore.last_notifcoins.find((rec: INotif) => rec.dest === username)
|
||||
if (notifStore.last_notifcoins) {
|
||||
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]
|
||||
}
|
||||
|
||||
|
||||
@@ -1465,6 +1465,7 @@ const msg_it = {
|
||||
movements: 'Movimenti',
|
||||
ris_in_arrivo: '👉🏻 Apri, hai RIS da ricevere !',
|
||||
mov_in_arrivo: '👉🏻 Apri {mov} transazioni in RIS!',
|
||||
mov_in_arrivo_sent: '👉🏻 {mov} transazioni UTENTI in RIS!',
|
||||
transaz: 'mov',
|
||||
movements_made: 'Movimenti effettuati',
|
||||
contocomunitario: 'Conto Comunitario',
|
||||
|
||||
@@ -109,7 +109,8 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
let arrcircnaz = this.listcircuits.filter((rec: ICircuit) => rec.showAlways)
|
||||
|
||||
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
|
||||
|
||||
@@ -655,6 +655,22 @@
|
||||
></q-btn>
|
||||
<br />
|
||||
</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">
|
||||
<q-btn
|
||||
label="Correggi Transazioni Circuiti"
|
||||
|
||||
Reference in New Issue
Block a user