Commit 20c4e7ac authored by Georg Krause's avatar Georg Krause Committed by JuniorJPDJ
Browse files

Don't show go to track page link on track page

parent 72950d52
......@@ -82,7 +82,7 @@
<translate translate-context="Sidebar/Player/Icon.Tooltip/Verb">Add to playlist…</translate>
</button>
<button
v-if="track"
v-if="track && !onTrackPage"
class="item basic"
@click.stop.prevent="$router.push(`/library/tracks/${track.id}/`)"
>
......@@ -191,6 +191,9 @@ export default {
}
}
return null
},
onTrackPage () {
return this.$router.currentRoute.name === 'library.tracks.detail'
}
},
watch: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment