+ Registered Users

+ UsersList Online
This commit is contained in:
Surya Paolo
2022-12-10 02:01:26 +01:00
parent aeeba5a6b9
commit cd31d2d020
18 changed files with 364 additions and 72 deletions

View File

@@ -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