Notifiche all'Utente
Pannello Utente (backoffice)
This commit is contained in:
@@ -54,6 +54,7 @@ export const DefaultUser: IUserFields = {
|
||||
manage_mygroups: [],
|
||||
asked_friends: [],
|
||||
asked_groups: [],
|
||||
notifs: 15,
|
||||
},
|
||||
cart: {
|
||||
userId: '',
|
||||
@@ -99,6 +100,7 @@ export const DefaultProfile: IUserProfile = {
|
||||
manage_mygroups: [],
|
||||
asked_friends: [],
|
||||
asked_groups: [],
|
||||
notifs: 15,
|
||||
}
|
||||
|
||||
export const useUserStore = defineStore('UserStore', {
|
||||
@@ -991,6 +993,21 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
},
|
||||
|
||||
async setUserNotifs(notifs: number) {
|
||||
const data = {
|
||||
notifs
|
||||
}
|
||||
|
||||
return Api.SendReq('/users/notifs', 'POST', data)
|
||||
.then((ris) => {
|
||||
return ris.data
|
||||
}).catch((error) => {
|
||||
return {}
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
|
||||
async loadUserPanel(username: string) {
|
||||
const data = {
|
||||
username
|
||||
|
||||
Reference in New Issue
Block a user