show last access in profile

This commit is contained in:
Surya Paolo
2022-12-10 02:42:07 +01:00
parent a521161ae9
commit 955c4daaa1
4 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@
> >
<q-item-section avatar> <q-item-section avatar>
<q-avatar round size="48px"> <q-avatar round size="48px">
<img :src="userStore.getImgUserByUsername(myvalue)" /> <img :src="userStore.getImgByProfile(row)" />
<q-badge v-if="tools.isUserOnline(row)" align="top" floating color="green">online</q-badge> <q-badge v-if="tools.isUserOnline(row)" align="top" floating color="green">online</q-badge>
</q-avatar> </q-avatar>
</q-item-section> </q-item-section>

View File

@@ -203,6 +203,7 @@ export default defineComponent({
mytab, mytab,
getImgUserByUsername, getImgUserByUsername,
gotoPage, gotoPage,
userStore,
} }
} }

View File

@@ -116,7 +116,7 @@
> >
<q-item-section avatar> <q-item-section avatar>
<q-avatar round size="48px"> <q-avatar round size="48px">
<img :src="getImgUserByUsername(user.username)" /> <img :src="userStore.getImgByProfile(user)" />
<q-badge <q-badge
v-if="tools.isUserOnline(user)" v-if="tools.isUserOnline(user)"
align="top" align="top"

View File

@@ -37,7 +37,7 @@
<div class=""> <div class="">
<q-avatar size="140px"> <q-avatar size="140px">
<q-img <q-img
:src="getImgUser()" :src="myuser.profile ? getImgUser(myuser.profile) : ''"
:alt="username" :alt="username"
img-class="imgprofile" img-class="imgprofile"
height="140px" height="140px"