Fixed aria label on play button

This commit is contained in:
Agate 2020-08-04 11:27:06 +02:00
parent 1a8e10e7e2
commit 7e5231c334
1 changed files with 14 additions and 1 deletions

View File

@ -78,13 +78,26 @@ export default {
},
computed: {
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 {
playNow: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play now'),
addToQueue: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Add to current queue'),
playNext: this.$pgettext('*/Queue/Dropdown/Button/Title', 'Play next'),
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…'),
replacePlay,
}
},
title () {