- Mail in a Box: comandi per aggiungere/modificare/rimuovere le caselle di posta
- aggiunto idMyGroup: ospiti siti di gruppi (AbitareGliIblei)
This commit is contained in:
@@ -362,8 +362,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return userStore.my.profile.friends
|
||||
else if (table === 'friendsandme')
|
||||
return [{ username: userStore.my.username }, ...userStore.my.profile.friends]
|
||||
// else if (table === 'mygroups')
|
||||
// return userStore.groups
|
||||
else if (table === 'mygroups')
|
||||
return userStore.groups
|
||||
return state.mygroups
|
||||
else if (table === 'sendmsgs')
|
||||
return messageStore.last_msgs
|
||||
else if (table === 'sendnotifs')
|
||||
@@ -1923,12 +1925,16 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const newarr = []
|
||||
for (const value of myarr) {
|
||||
let label = value
|
||||
if (table === 'mygroups')
|
||||
label = value.descr
|
||||
else if (table === 'circuits')
|
||||
let valout = value
|
||||
// if (table === 'mygroups') {
|
||||
// label = value.descr
|
||||
// valout = value.groupname
|
||||
if (table === 'circuits') {
|
||||
label = value.name
|
||||
}
|
||||
|
||||
newarr.push({ value, label })
|
||||
// console.log('value', value, 'label', label)
|
||||
newarr.push({ value: valout, label })
|
||||
}
|
||||
|
||||
myarr = newarr
|
||||
@@ -2192,6 +2198,22 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
})
|
||||
},
|
||||
|
||||
async getMailInABox(cmd: string, record: any = undefined) {
|
||||
|
||||
const mydata = {
|
||||
cmd,
|
||||
tokcheck: "php8.1_version_762321HSD121nJDokq@?!aFS.tar.gz",
|
||||
record,
|
||||
}
|
||||
|
||||
return Api.SendReq('/admin/miab', 'POST', mydata)
|
||||
.then((res) => {
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return false
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user