2022-10-13 15:18:47 +00:00
|
|
|
<template>
|
2022-10-25 17:29:56 +00:00
|
|
|
<a
|
2023-06-01 14:58:51 +00:00
|
|
|
v-if="currentUser"
|
2022-10-25 17:29:56 +00:00
|
|
|
v-koel-tooltip.left
|
2024-04-24 20:25:39 +00:00
|
|
|
class="view-profile rounded-full"
|
2022-10-25 17:29:56 +00:00
|
|
|
data-testid="view-profile-link"
|
|
|
|
href="/#/profile"
|
|
|
|
title="Profile and preferences"
|
|
|
|
>
|
2024-04-04 22:20:42 +00:00
|
|
|
<UserAvatar
|
|
|
|
:user="currentUser"
|
|
|
|
class="p-0.5 border border-solid border-white/10 transition duration-200 ease-in-out hover:border-white/30 active:scale-95"
|
|
|
|
width="40"
|
|
|
|
/>
|
2022-10-13 15:18:47 +00:00
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { useAuthorization } from '@/composables'
|
2024-01-18 11:13:05 +00:00
|
|
|
import UserAvatar from '@/components/user/UserAvatar.vue'
|
2022-10-13 15:18:47 +00:00
|
|
|
|
|
|
|
const { currentUser } = useAuthorization()
|
|
|
|
</script>
|