Fixed aria label on play button
This commit is contained in:
parent
1a8e10e7e2
commit
7e5231c334
|
@ -78,13 +78,26 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
labels () {
|
labels () {
|
||||||
|
let replacePlay
|
||||||
|
if (this.track) {
|
||||||
|
replacePlay = this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play track')
|
||||||
|
} else if (this.album) {
|
||||||
|
replacePlay = this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play album')
|
||||||
|
} else if (this.artist) {
|
||||||
|
replacePlay = this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play artist')
|
||||||
|
} else if (this.playlist) {
|
||||||
|
replacePlay = this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play playlist')
|
||||||
|
} else {
|
||||||
|
replacePlay = this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play tracks')
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
playNow: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play now'),
|
playNow: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play now'),
|
||||||
addToQueue: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Add to current queue'),
|
addToQueue: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Add to current queue'),
|
||||||
playNext: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play next'),
|
playNext: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play next'),
|
||||||
startRadio: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play similar songs'),
|
startRadio: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play similar songs'),
|
||||||
replacePlay: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Replace current queue'),
|
|
||||||
report: this.$pgettext('*/Moderation/*/Button/Label,Verb', 'Report…'),
|
report: this.$pgettext('*/Moderation/*/Button/Label,Verb', 'Report…'),
|
||||||
|
replacePlay,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
title () {
|
title () {
|
||||||
|
|
Loading…
Reference in New Issue