Now going back to the same page

This commit is contained in:
Pünkösd Marcell 2020-11-26 23:18:13 +01:00
parent 04cd9e1f92
commit 287bcd5135
2 changed files with 13 additions and 2 deletions

View File

@ -73,7 +73,18 @@ export default {
},
methods: {
rowClicked(data) {
this.$router.push({name: 'Item', params: {id: data.id}, query: {collection: this.$route.params.id}});
this.$router.push(
{
name: 'Item',
params: {
id: data.id
},
query: {
collection: this.$route.params.id,
srcpage: this.$route.query.p
}
}
);
},
startPlayer(spotify_id) {
this.$store.dispatch('openPlayer', spotify_id);

View File

@ -3,7 +3,7 @@
<b-row>
<b-col>
<h1>
<b-button variant="transparent" class="m-1" :to="{name: 'Collection', params: {id: $route.query.collection}}">
<b-button variant="transparent" class="m-1" :to="{name: 'Collection', params: {id: $route.query.collection}, query: {p: $route.query.srcpage}}">
<b-icon icon="arrow-left-circle-fill"/>
</b-button>
{{ songInfo.type | capitalize }}