mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:42:53 +08:00
DEV: Update user dropdown aria-label (#25845)
This commit is contained in:
parent
21f23cc032
commit
23bce774d7
|
@ -1,5 +1,4 @@
|
|||
import Component from "@glimmer/component";
|
||||
import { concat } from "@ember/helper";
|
||||
import { on } from "@ember/modifier";
|
||||
import { action } from "@ember/object";
|
||||
import { inject as service } from "@ember/service";
|
||||
|
@ -39,9 +38,9 @@ export default class UserDropdown extends Component {
|
|||
aria-haspopup="true"
|
||||
aria-expanded={{@active}}
|
||||
href={{this.currentUser.path}}
|
||||
aria-label={{concat
|
||||
(or this.currentUser.name this.currentUser.username)
|
||||
(i18n "user.account_possessive")
|
||||
aria-label={{i18n
|
||||
"user.account_possessive"
|
||||
name=(or this.currentUser.name this.currentUser.username)
|
||||
}}
|
||||
data-auto-route="true"
|
||||
{{on "click" this.click}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user