DEV: Update user dropdown aria-label (#25845)

This commit is contained in:
Isaac Janzen 2024-02-23 16:11:47 -07:00 committed by GitHub
parent 21f23cc032
commit 23bce774d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}}