Skip to content
Snippets Groups Projects
Commit 3bed93d6 authored by Jo Vuit's avatar Jo Vuit
Browse files

Add context

parent 711a667d
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