mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
FIX: Incorrect user menu title/alt (#27019)
This commit is contained in:
parent
722d694305
commit
d112a49cc5
@ -18,12 +18,11 @@ export default class Notifications extends Component {
|
|||||||
avatarSize = "medium";
|
avatarSize = "medium";
|
||||||
|
|
||||||
get avatar() {
|
get avatar() {
|
||||||
let avatarAttrs = {};
|
const avatarAttrs = addExtraUserClasses(this.currentUser, {});
|
||||||
addExtraUserClasses(this.currentUser, avatarAttrs);
|
|
||||||
return htmlSafe(
|
return htmlSafe(
|
||||||
renderAvatar(this.currentUser, {
|
renderAvatar(this.currentUser, {
|
||||||
imageSize: this.avatarSize,
|
imageSize: this.avatarSize,
|
||||||
alt: "user.avatar.header_title",
|
title: i18n("user.avatar.header_title"),
|
||||||
template: this.currentUser.avatar_template,
|
template: this.currentUser.avatar_template,
|
||||||
username: this.currentUser.username,
|
username: this.currentUser.username,
|
||||||
name: this.siteSettings.enable_names && this.currentUser.name,
|
name: this.siteSettings.enable_names && this.currentUser.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user