- 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

@@ -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]
}