- Griglia Orizzontale a Carosello
- Aggiornato Tabella Eventi - Lista Ultimi Movimenti - Ultime strette di mano - Ultimi Invitanti alla App
This commit is contained in:
@@ -683,12 +683,12 @@ export const useUserStore = defineStore('UserStore', {
|
||||
},
|
||||
|
||||
getLinkProfileAndRIS(username: string, qtyris: string, causale: string = ''): string {
|
||||
|
||||
|
||||
let myparams = ''
|
||||
if (username === '')
|
||||
username = this.my.username
|
||||
let mylink = tools.getUrlSite() + '/my/' + username
|
||||
|
||||
|
||||
let myval = tools.strToVal(qtyris, true)
|
||||
if (myval !== null) {
|
||||
if (myparams)
|
||||
@@ -773,7 +773,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return myrec
|
||||
},
|
||||
|
||||
getNameToShow(user: any, col: any = null): string {
|
||||
getNameToShow(user: any, col: any = null, options: any = {}): string {
|
||||
let name = ''
|
||||
let myrec = this.getRecByCol(user, col)
|
||||
|
||||
@@ -812,14 +812,27 @@ export const useUserStore = defineStore('UserStore', {
|
||||
if (!name && myrec.extrarec && myrec.extrarec.hasOwnProperty('contoComDest'))
|
||||
return myrec.extrarec.contoComDest
|
||||
|
||||
return name
|
||||
return name + (options && options.showprov ? this.getProvinceByUser(myrec, options ? options.html : false) : '')
|
||||
|
||||
},
|
||||
|
||||
getUserNameOnlyIfToShow(user: any, col: any = null): string {
|
||||
getProvinceByUser(user: IUserFields, html: boolean = false) {
|
||||
let mystr = ''
|
||||
if (user && user.profile && user.profile.resid_province)
|
||||
mystr = `(${user.profile.resid_province})`
|
||||
|
||||
if (html) {
|
||||
mystr = `<span style='text-align: right'>${mystr}</span>`
|
||||
}
|
||||
|
||||
return mystr
|
||||
},
|
||||
|
||||
getUserNameOnlyIfToShow(user: any, col: any = null, options: any): string {
|
||||
let myrec = this.getRecByCol(user, col)
|
||||
|
||||
if (myrec.name || myrec.surname) {
|
||||
return myrec.username
|
||||
return myrec.username + ((options && options.showprov) ? this.getProvinceByUser(myrec, options.html) : '')
|
||||
}
|
||||
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user