1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-30 15:58:06 +09:00

refactor: improve account info UI

This commit is contained in:
三咲智子 2022-11-23 21:59:29 +08:00
parent 8a43cfaca5
commit 5605d518dc
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export function getDisplayName(account: Account) {
// We don't want to hold to old values, so every time a Relationship is needed it
// is requested again from the server to show the latest state
const requestedRelationships = new Map<string, Ref<Relationship | undefined> >()
const requestedRelationships = new Map<string, Ref<Relationship | undefined>>()
let timeoutHandle: NodeJS.Timeout | undefined
export function useRelationship(account: Account): Ref<Relationship | undefined> {

View File

@ -11,7 +11,8 @@
<div flex-auto />
<AccountInfo
v-if="currentUser"
p4
mx4 mb4 p2 rounded
hover:bg-active cursor-pointer
:account="currentUser?.account"
:link="false"
@click="openUserSwitcher"