2022-11-27 11:16:27 +00:00
|
|
|
<template>
|
2022-12-21 14:10:37 +00:00
|
|
|
<VDropdown v-if="isMastoInitialised && currentUser" sm:hidden>
|
2022-11-27 11:16:27 +00:00
|
|
|
<div style="-webkit-touch-callout: none;">
|
|
|
|
<AccountAvatar
|
|
|
|
ref="avatar"
|
|
|
|
:account="currentUser.account"
|
2022-12-31 12:26:52 +00:00
|
|
|
h-8
|
|
|
|
w-8
|
2022-11-27 11:16:27 +00:00
|
|
|
:draggable="false"
|
2023-01-05 12:10:22 +00:00
|
|
|
square
|
2022-11-27 11:16:27 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
2022-12-15 13:50:11 +00:00
|
|
|
<template #popper="{ hide }">
|
|
|
|
<UserSwitcher ref="switcher" @click="hide()" />
|
2022-11-27 11:16:27 +00:00
|
|
|
</template>
|
|
|
|
</VDropdown>
|
2023-01-05 14:03:45 +00:00
|
|
|
<button v-else btn-solid text-sm px-2 py-1 text-center xl:hidden @click="openSigninDialog()">
|
2023-01-09 20:20:26 +00:00
|
|
|
{{ $t('action_sign_in') }}
|
2022-11-27 11:16:27 +00:00
|
|
|
</button>
|
|
|
|
</template>
|