+ Registered Users
+ UsersList Online
This commit is contained in:
@@ -273,7 +273,6 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return (trovato) || null
|
||||
},
|
||||
|
||||
|
||||
getImgByUsername(username: string): string {
|
||||
if (username === '') return ''
|
||||
// Check if is this User!
|
||||
@@ -441,6 +440,15 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return name
|
||||
},
|
||||
|
||||
getUserNameOnlyIfToShow(user: IUserFields): string {
|
||||
|
||||
if (user.name || user.surname) {
|
||||
return user.username
|
||||
}
|
||||
|
||||
return ''
|
||||
},
|
||||
|
||||
getUserByUserId(userId: string): IUserFields | null {
|
||||
// Check if is this User!
|
||||
if (this.my._id === userId) return this.my
|
||||
|
||||
Reference in New Issue
Block a user