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:
parent
8a43cfaca5
commit
5605d518dc
@ -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> {
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user