Corretto le richieste di amicizie, aggiunto Accettazione sul BOT

This commit is contained in:
paoloar77
2022-03-11 12:38:17 +01:00
parent 64579ccabf
commit a353e85ccf
14 changed files with 117 additions and 36 deletions

View File

@@ -523,6 +523,15 @@ export const colmyUserPeople = [
name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
}),
AddCol({
name: 'profile.born_city_id', label_trans: 'reg.born_city', fieldtype: costanti.FieldType.select_by_server,
jointable: 'cities',
tablesel: 'cities',
remote_table: 'mycities',
remote_key: '_id',
remote_field: 'comune',
noshowlabel: true,
}),
// AddCol({ name: 'sospeso', label_trans: 'reg.sospeso', fieldtype: costanti.FieldType.boolean }),
// AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }),
]
@@ -2174,6 +2183,15 @@ export const fieldsTable = {
} else
return null
},
getColByColumns(mycolumns: any, namecol: string) {
if (mycolumns) {
// console.log('tablerec', tablerec.columns)
const mycol = mycolumns.find((col: any) => col.name === namecol)
// console.log('mycol = ', mycol)
return mycol
} else
return null
},
getArrColsByTable(mytable: string) {
const tablerec: any = this.tablesList.find((rec) => rec.value === mytable)
if (tablerec) {