fix: ordinamento membri (namecomplete (concat: name, surname, username)

This commit is contained in:
Surya Paolo
2023-04-12 15:37:47 +02:00
parent cfed7552b1
commit fb68df418d
28 changed files with 136 additions and 103 deletions

View File

@@ -171,13 +171,13 @@ export const shared_consts = {
TABLES_MYGOODS: 'mygoods',
TABLES_MYEVENTS: 'myevents',
MYTABS: [{id: 0, table: 'none' },
{id: 1, table: 'myskills'},
{id: 2, table: 'mybachecas' },
{id: 3, table: 'myhosps'} ,
{id: 4, table: 'mygoods'},
{id: 5, table: 'myevents'}
],
MYTABS: [{ id: 0, table: 'none' },
{ id: 1, table: 'myskills' },
{ id: 2, table: 'mybachecas' },
{ id: 3, table: 'myhosps' },
{ id: 4, table: 'mygoods' },
{ id: 5, table: 'myevents' }
],
TABLES_ENABLE_GETREC_BYID: ['mybachecas', 'myhosps'],
@@ -1115,6 +1115,9 @@ export const shared_consts = {
TYPEDIR_HANDSHAKE: 10,
ID_HANDSHAKE_ACCEPTED: 2,
TYPEDIR_FAVORITE: 11,
ID_FAVORITE_ADDED: 1,
TYPEDIR_TEST: 444,
ID_TEST_NEW_REC: 1,
},
@@ -1151,6 +1154,18 @@ export const shared_consts = {
}
],
},
{
value: 11, //
labeltrans: 'typenotifs.favorite',
descr: 'typenotifs.favorite_descr',
icon: 'far fa-heart',
list: [
{
value: 1, // ID_FAVORITE_ADDED
labeltrans: 'notifsid.favorite_new',
}
],
},
{
value: 2, //
labeltrans: 'typenotifs.events',
@@ -1260,6 +1275,11 @@ export const shared_consts = {
labeltrans: 'notifsid.circuits_new',
directory: 5,
},
{
value: 1, //
labeltrans: 'notifsid.favorite_new',
directory: 11,
},
],
CIRCUIT_STATUS: {
@@ -1585,6 +1605,8 @@ export const shared_consts = {
reported: 1,
date_report: 1,
username_who_report: 1,
namecomplete: 1,
date_reg: 1,
};
if (proj_add)
@@ -1593,4 +1615,26 @@ export const shared_consts = {
return proj;
},
getDirectoryByTable(table: string, barre?: boolean) {
let add = '';
if (barre)
add = '/';
if (table === 'myskills') {
return add + 'myservice' + add
} else if (table === 'mybachecas') {
return add + 'mypage' + add
} else if (table === 'myhosps') {
return add + 'myhosps' + add
} else if (table === 'mygoods') {
return add + 'mygood' + add
} else if (table === 'mygroups') {
return add + 'grp' + add
} else if (table === 'circuits') {
return add + 'circuit' + add
}
return ''
},
}