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

This commit is contained in:
Georg Krause 2021-12-11 16:14:47 +01:00 committed by JuniorJPDJ
parent 72950d52d3
commit 20c4e7ac31
1 changed files with 4 additions and 1 deletions

View File

@ -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: {