- fix RIS in pendenti, se troppi msg, non compariva piu
- cataloghi, ricerca pickup
This commit is contained in:
@@ -1647,6 +1647,9 @@ export const useUserStore = defineStore('UserStore', {
|
||||
if (res && res.data.arrrecnotif) {
|
||||
notifStore.updateArrRecNotifFromServer(res.data.arrrecnotif)
|
||||
}
|
||||
if (res && res.data.arrrecnotifcoins) {
|
||||
notifStore.updateArrRecNotifCoinsFromServer(res.data.arrrecnotifcoins)
|
||||
}
|
||||
if (res.data.useraccounts && res.data.useraccounts.length > 0) {
|
||||
this.my.profile.useraccounts = res.data.useraccounts
|
||||
}
|
||||
@@ -1782,12 +1785,15 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return await Api.SendReq('/users/circuits/cmd', 'POST', { usernameOrig, circuitname, cmd, value, extrarec })
|
||||
.then((res) => {
|
||||
this.updateTables = true
|
||||
const notifStore = useNotifStore()
|
||||
if (res.data.recnotif) {
|
||||
const notifStore = useNotifStore()
|
||||
|
||||
notifStore.updateRecNotif(res.data.recnotif)
|
||||
|
||||
notifStore.updateArrRecNotifFromServer(res.data.arrrecnotif)
|
||||
if (res.data.recnotif.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS) {
|
||||
notifStore.updateRecNotifCoins(res.data.recnotif)
|
||||
notifStore.updateArrRecNotifCoinsFromServer(res.data.arrrecnotifcoins)
|
||||
} else {
|
||||
notifStore.updateRecNotif(res.data.recnotif)
|
||||
notifStore.updateArrRecNotifFromServer(res.data.arrrecnotif)
|
||||
}
|
||||
}
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user