Members, Circuits
This commit is contained in:
@@ -3717,6 +3717,16 @@ export const tools = {
|
||||
return mystr.replace(/\s+/g, '')
|
||||
},
|
||||
|
||||
removespaces_slash(mystr: string) {
|
||||
mystr = mystr.replace(/\s+/g, '')
|
||||
mystr = mystr.replace(/\//g, '')
|
||||
mystr = mystr.replace(/:/g, '')
|
||||
mystr = mystr.replace(/./g, '')
|
||||
mystr = mystr.replace(/,/g, '')
|
||||
mystr = mystr.replace(/'/g, '')
|
||||
return mystr
|
||||
},
|
||||
|
||||
copyStringToClipboard(myq: any, mystr: string, show: boolean) {
|
||||
|
||||
copyToClipboard(mystr).then(() => {
|
||||
@@ -5899,6 +5909,7 @@ export const tools = {
|
||||
color: '#ff5500',
|
||||
deperimento: false,
|
||||
transactionsEnabled: false,
|
||||
status: shared_consts.CIRCUIT_STATUS.FASE1_CREAZIONE_GRUPPO,
|
||||
symbol: 'RIS',
|
||||
fido_scoperto_default: 100,
|
||||
qta_max_default: 200,
|
||||
@@ -5966,13 +5977,16 @@ export const tools = {
|
||||
},
|
||||
|
||||
getFullFileName(arrimage: IImgGallery[], table: string, username: string, groupname: string) {
|
||||
console.log('arrimage', arrimage)
|
||||
|
||||
if (shared_consts.TABLES_DIRECTORY_A_PARTE.includes(table)) {
|
||||
return `upload/${table}/` + groupname + '/' + arrimage[0].imagefile
|
||||
} else if (shared_consts.TABLES_DIRECTORY_SINGLE_IMG.includes(table)) {
|
||||
return `upload/${table}/` + groupname + '/' + arrimage[0].imagefile
|
||||
} else {
|
||||
console.log('username', username, 'table', table)
|
||||
if (arrimage && arrimage.length > 0) {
|
||||
return 'upload/profile/' + username + '/' + table + '/' + arrimage[0].imagefile
|
||||
return `upload/profile/${username}/${table}` + arrimage[0].imagefile
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user