Merge branch '662-favorites-Track' into 'develop'
Add context (#662) See merge request funkwhale/funkwhale!585
This commit is contained in:
commit
b04cb61d4a
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<button @click="$store.dispatch('favorites/toggle', track.id)" v-if="button" :class="['ui', 'pink', {'inverted': isFavorite}, {'favorited': isFavorite}, 'button']">
|
||||
<i class="heart icon"></i>
|
||||
<translate v-if="isFavorite">In favorites</translate>
|
||||
<translate v-else>Add to favorites</translate>
|
||||
<translate v-if="isFavorite" :translate-context="'Content/Track/Button.Message'">In favorites</translate>
|
||||
<translate v-else :translate-context="'Content/Track/Button.Message'">Add to favorites</translate>
|
||||
</button>
|
||||
<button
|
||||
v-else
|
||||
|
@ -23,9 +23,9 @@ export default {
|
|||
computed: {
|
||||
title () {
|
||||
if (this.isFavorite) {
|
||||
return this.$gettext('Remove from favorites')
|
||||
return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Remove from favorites')
|
||||
} else {
|
||||
return this.$gettext('Add to favorites')
|
||||
return this.$pgettext('*/Favorites/Icon.Tooltip/Verb', 'Add to favorites')
|
||||
}
|
||||
},
|
||||
isFavorite () {
|
||||
|
|
Loading…
Reference in New Issue