- cataloghi...
- fix: condividi su Telegram non funzionava errore sull'immagine
This commit is contained in:
@@ -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 = '/';
|
||||
|
||||
Reference in New Issue
Block a user