fix: account dropdown (#3658)
This commit is contained in:
parent
157a6485b4
commit
f3a5a8e002
1 changed files with 14 additions and 10 deletions
|
|
@ -73,32 +73,36 @@
|
||||||
|
|
||||||
<lnbits-language-dropdown></lnbits-language-dropdown>
|
<lnbits-language-dropdown></lnbits-language-dropdown>
|
||||||
|
|
||||||
<q-btn-dropdown
|
<q-btn-dropdown v-if="g.user" flat rounded size="sm" class="q-pl-sm">
|
||||||
v-if="g.user || g.isUserAuthorized"
|
|
||||||
flat
|
|
||||||
rounded
|
|
||||||
size="sm"
|
|
||||||
class="q-pl-sm"
|
|
||||||
>
|
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
<q-avatar v-if="g.user?.extra?.picture !== ''" size="18px">
|
<q-avatar
|
||||||
|
v-if="g.user?.extra?.picture && g.user?.extra?.picture !== ''"
|
||||||
|
size="18px"
|
||||||
|
>
|
||||||
<q-img :src="g.user?.extra?.picture"></q-img>
|
<q-img :src="g.user?.extra?.picture"></q-img>
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
<q-avatar v-else icon="account_circle" size="18px"></q-avatar>
|
<q-avatar v-else icon="account_circle" size="18px"></q-avatar>
|
||||||
</template>
|
</template>
|
||||||
<q-list style="max-width: 200px">
|
<q-list style="max-width: 200px">
|
||||||
<q-item>
|
<q-item>
|
||||||
<q-item-section avatar v-if="g.user?.extra?.picture !== ''">
|
<q-item-section
|
||||||
|
avatar
|
||||||
|
v-if="
|
||||||
|
g.user &&
|
||||||
|
g.user?.extra?.picture &&
|
||||||
|
g.user?.extra?.picture !== ''
|
||||||
|
"
|
||||||
|
>
|
||||||
<q-avatar size="md">
|
<q-avatar size="md">
|
||||||
<img :src="g.user?.extra?.picture" />
|
<img :src="g.user?.extra?.picture" />
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label
|
<q-item-label
|
||||||
|
caption
|
||||||
class="ellipsis"
|
class="ellipsis"
|
||||||
v-text="displayName"
|
v-text="displayName"
|
||||||
></q-item-label>
|
></q-item-label>
|
||||||
<q-item-label caption v-text="displayRole"></q-item-label>
|
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-separator></q-separator>
|
<q-separator></q-separator>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue