- cataloghi...

- fix: condividi su Telegram non funzionava errore sull'immagine
This commit is contained in:
Surya Paolo
2024-11-02 18:06:27 +01:00
parent 2ea6468100
commit 1c63b5346b
91 changed files with 2105 additions and 306 deletions

View File

@@ -298,11 +298,15 @@ export const shared_consts = {
// Condivise
TABLES_FAVORITE_BOOKMARK: ['myskills', 'mygoods', 'mybachecas', 'myhosps', 'attivitas'],
TABLEFORUSERS: [
'myskills',
'mygoods',
'mybachecas',
'myhosps',
],
// Solo per VUE.JS
TABLES_INSERT_ALMOST_ONE_TO_ENABLE_CIRCUIT: ['myskills', 'myhosps', 'mygoods'],
TABLES_WITH_FILTER_FIELD: ['caldate'],
TABLES_WITH_SPECIAL_FILTER: ['pub_to_share'],
@@ -1930,6 +1934,16 @@ export const shared_consts = {
return (trovatorec) ? trovatorec.label : ''
},
getDirectoryImgByTable(table: string, username: string) {
let ris = ''
if (this.TABLEFORUSERS.includes(table)) {
ris = 'profile/' + username + '/' + table + '/';
}
return ris;
},
getLabelByValueAndArr(value: number, array: any) {
const trovatorec = array.find((rec: any) => rec.value === value)
return (trovatorec) ? trovatorec.label : ''
@@ -2089,6 +2103,7 @@ export const shared_consts = {
website: 1,
organisedBy: 1,
contact_phone: 1,
contact_email: 1,
contact_telegram: 1,
address: 1,
min_partecip: 1,
@@ -2163,6 +2178,7 @@ export const shared_consts = {
},
getDirectoryByTable(table: string, barre?: boolean) {
let add = '';
if (barre)
add = '/';