logout btn now shows logged user

This commit is contained in:
zurdi
2023-08-17 18:26:40 +02:00
parent a858ddbe3c
commit 4f75ed013a
3 changed files with 13 additions and 10 deletions

View File

@@ -300,3 +300,4 @@ Games can be tagged with region, revision or other tags using parenthesis in the
* Pc icon support - <a href="https://www.flaticon.com/free-icons/keyboard-and-mouse" title="Keyboard and mouse icons">Keyboard and mouse icons created by Flat Icons - Flaticon</a>
* Login page background wallpaper - <a href="https://www.freepik.com/free-vector/colorful-futuristic-background-with-shiny-particles_9260185.htm#query=gaming%20background&position=29&from_view=keyword&track=ais">Image by pikisuperstar</a> on Freepik
* Default user icon - <a target="_blank" href="https://icons8.com/icon/tZuAOUGm9AuS/user-default">User Default</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -12,14 +12,16 @@ async function logout() {
</script>
<template>
<v-btn
class="drawer-item"
@click="logout()"
rounded="0"
color="primary"
block
>
{{ rail ? "" : "Logout" }}
<v-icon :class="{'ml-3': !rail}">mdi-logout-variant</v-icon>
</v-btn>
<v-list-item height="60" class="bg-primary text-button" rounded="0">
{{ rail ? "" : "Zurdi" }}
<template v-slot:prepend>
<v-avatar :class="{ 'ml-4': rail, 'my-3': rail }">
<v-img src="/assets/default_user.png" />
</v-avatar>
</template>
<template v-slot:append>
<v-btn v-if="!rail" variant="text" icon="mdi-location-exit" @click="logout()"></v-btn>
</template>
</v-list-item>
<v-btn v-if="rail" variant="text" icon="mdi-location-exit" class="ml-7 my-1" @click="logout()"></v-btn>
</template>