mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
logout btn now shows logged user
This commit is contained in:
@@ -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>
|
||||
|
||||
BIN
frontend/assets/default_user.png
Normal file
BIN
frontend/assets/default_user.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user