elk/components/user/UserDropdown.vue

14 lines
479 B
Vue
Raw Normal View History

2022-12-27 20:07:19 +00:00
<template>
<VDropdown :distance="0" placement="top-start">
<button btn-action-icon :aria-label="$t('action.switch_account')">
2023-01-03 02:14:54 +00:00
<!-- TODO -->
<div :class="{ 'hidden xl:block': !isGuest }" i-ri:more-2-line />
2023-01-04 14:15:24 +00:00
<AccountAvatar v-if="!isGuest" xl:hidden :account="currentUser.account" w-9 h-9 />
2023-01-03 01:23:16 +00:00
<span v-else>TODO: Guest</span>
2022-12-27 20:07:19 +00:00
</button>
<template #popper="{ hide }">
<UserSwitcher @click="hide" />
</template>
</VDropdown>
</template>