mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add tooltip to header avatar menu
- Add 'showProfileNameTitle' to profile avatar.
This commit is contained in:
parent
ee6a7dab48
commit
4c0469f61a
@ -11,7 +11,15 @@
|
|||||||
"
|
"
|
||||||
@click.prevent="toggleMenu"
|
@click.prevent="toggleMenu"
|
||||||
>
|
>
|
||||||
<profile-avatar :profile="user" size="small" />
|
<profile-avatar
|
||||||
|
:profile="user"
|
||||||
|
size="small"
|
||||||
|
:showProfileNameTitle="false"
|
||||||
|
v-tooltip="{
|
||||||
|
content: $t('header.avatarMenu.button.tooltip'),
|
||||||
|
placement: 'bottom-start',
|
||||||
|
}"
|
||||||
|
/>
|
||||||
<base-icon class="dropdown-arrow" name="angle-down" />
|
<base-icon class="dropdown-arrow" name="angle-down" />
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
:src="profile.avatar | proxyApiUrl"
|
:src="profile.avatar | proxyApiUrl"
|
||||||
class="image"
|
class="image"
|
||||||
:alt="profile.name"
|
:alt="profile.name"
|
||||||
:title="profile.name"
|
:title="showProfileNameTitle ? profile.name : ''"
|
||||||
@error="$event.target.style.display = 'none'"
|
@error="$event.target.style.display = 'none'"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -29,6 +29,10 @@ export default {
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
showProfileNameTitle: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isAnonymous() {
|
isAnonymous() {
|
||||||
|
|||||||
@ -510,6 +510,9 @@
|
|||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"avatarMenu": {
|
"avatarMenu": {
|
||||||
|
"button": {
|
||||||
|
"tooltip": "Mein Profil"
|
||||||
|
},
|
||||||
"Groups": "Gruppen",
|
"Groups": "Gruppen",
|
||||||
"myProfile": "Mein Profil"
|
"myProfile": "Mein Profil"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -510,6 +510,9 @@
|
|||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"avatarMenu": {
|
"avatarMenu": {
|
||||||
|
"button": {
|
||||||
|
"tooltip": "My profile"
|
||||||
|
},
|
||||||
"Groups": "Groups",
|
"Groups": "Groups",
|
||||||
"myProfile": "My profile"
|
"myProfile": "My profile"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user