- se annuncio cancellato (mostra avviso)

This commit is contained in:
Surya Paolo
2024-09-18 14:56:25 +02:00
parent 1142526ed8
commit 4ac0acc2f3
4 changed files with 29 additions and 12 deletions

View File

@@ -225,7 +225,7 @@ export const useNotifStore = defineStore('NotifStore', {
},
async updateNotifDataFromServer({ username, lastdataread }: { username: string, lastdataread: Date }) {
// console.log('updateNotifDataFromServer', username, lastdataread)
console.log('updateNotifDataFromServer', username, lastdataread)
return Api.SendReq(`/sendnotif/${username}/${lastdataread}/${process.env.APP_ID}`, 'GET', null)
.then((res) => {

View File

@@ -515,7 +515,7 @@ export const useUserStore = defineStore('UserStore', {
else
arrout = tools.getCommon([...this.my.profile.mycircuits], [...user.profile.mycircuits], 'circuitname')
// controlla che il circuito sia Abilitato e Territoriale !
for (const circuitname of arrout) {
@@ -1697,7 +1697,7 @@ export const useUserStore = defineStore('UserStore', {
return res.data
}).catch((error) => {
console.error('err', error)
return {}
return null
})
},
@@ -1872,11 +1872,11 @@ export const useUserStore = defineStore('UserStore', {
} else {
msg = t('db.recupdated')
tools.showPositiveNotif($q, msg)
}
}
} else {
tools.showPositiveNotif($q, msg)
}
}
}).catch((error) => {
tools.showNegativeNotif($q, t('db.recfailed'))