Skip to content
Snippets Groups Projects
Commit b04cb61d authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '662-favorites-Track' into 'develop'

Add context (#662)

See merge request funkwhale/funkwhale!585
parents 711a667d 3bed93d6
No related branches found
No related tags found
No related merge requests found
<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 () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment