Lista Amici

Richieste di Fiducia
Accettati
Rifiutati
This commit is contained in:
paoloar77
2022-01-07 01:16:46 +01:00
parent a1f2ced085
commit 3de9967571
16 changed files with 204 additions and 43 deletions

View File

@@ -11,6 +11,7 @@ export const costanti = {
FRIENDS: 1,
ASK_TRUST: 2,
TRUSTED: 3,
REEJECTED: 4,
FILTER_TUTTI: -100,

View File

@@ -1288,6 +1288,8 @@ export const fieldsTable = {
AddCol({ name: 'note', label_trans: 'reg.note' }),
AddCol({ name: 'aportador_solidario', label_trans: 'reg.aportador_solidario' }),
AddCol({ name: 'verified_by_aportador', label_trans: 'reg.verified_by_aportador', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'blocked', label_trans: 'reg.blocked', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'username_who_block', label_trans: 'reg.username_who_block' }),
AddCol({
name: 'profile.resplist',
field: 'profile',

View File

@@ -838,6 +838,17 @@ export const useUserStore = defineStore('UserStore', {
return {}
})
},
async setFriendsCmd($q: any, t: any, usernameOrig: string, usernameDest: string, cmd: number, value: any) {
return Api.SendReq('/users/friends/cmd', 'POST', {usernameOrig, usernameDest, cmd, value})
.then((res) => {
return !!res
}).catch((error) => {
tools.showNegativeNotif($q, t('db.recfailed'))
return {}
})
}
},
})