- se annuncio cancellato (mostra avviso)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user