fix Cliccando sul Titolo dell'evento, si apre una pagina in una nuova finestra ! (non rimane sulla APP)

This commit is contained in:
Surya Paolo
2022-12-02 13:24:20 +01:00
parent 009735afad
commit 9b7b25e657
26 changed files with 1201 additions and 499 deletions

View File

@@ -1047,7 +1047,7 @@ export const useUserStore = defineStore('UserStore', {
}
},
async loadUserProfile({username, idnotif}: {username: string, idnotif?: string}) {
async loadUserProfile({ username, idnotif }: { username: string, idnotif?: string }) {
const data = {
username,
idnotif
@@ -1104,9 +1104,9 @@ export const useUserStore = defineStore('UserStore', {
return Api.SendReq('/mygroup/load', 'POST', data)
.then((res) => {
return {data: res.data, status: res.status}
return { data: res.data, status: res.status }
}).catch((error) => {
return {data: null, status: error.status}
return { data: null, status: error.status }
})
},
@@ -1119,9 +1119,9 @@ export const useUserStore = defineStore('UserStore', {
return Api.SendReq('/circuit/load', 'POST', data)
.then((res) => {
return {data: res.data, status: res.status}
return { data: res.data, status: res.status }
}).catch((error) => {
return {data: null, status: error.status}
return { data: null, status: error.status }
})
},
@@ -1237,9 +1237,16 @@ export const useUserStore = defineStore('UserStore', {
let msgok = (res.data.nummsgsent === 1) ? res.data.nummsgsent + ' ' + t('cal.sendmsg_sent') : res.data.nummsgsent + ' ' + t('cal.sendmsgs_sent')
if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) {
msgok = t('cal.sendmsg_sent_sharedlink') + ' ' + tools.getBotName()
showmsgsent = true
}
if (showmsgsent && res.data.nummsgsent >= 0) {
tools.showPositiveNotif($q, msgok)
if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) {
if (res.data.textsent) {
return res.data.textsent
}
}
return true
}
return false