Fixed aria label on play button

environments/review-docs-devel-1399dq/deployments/6607
Agate 2020-08-04 11:27:06 +02:00
rodzic 1a8e10e7e2
commit 7e5231c334
1 zmienionych plików z 14 dodań i 1 usunięć

Wyświetl plik

@ -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 () {