Hide charts tracklist on load
This commit is contained in:
parent
91fc114cd3
commit
f306332d65
@ -12,7 +12,9 @@
|
|||||||
:data-title="release.title"
|
:data-title="release.title"
|
||||||
class="w-40 h-40 release clickable"
|
class="w-40 h-40 release clickable"
|
||||||
role="button"
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
@click="getTrackList"
|
@click="getTrackList"
|
||||||
|
@keyup.enter="getTrackList"
|
||||||
>
|
>
|
||||||
<img :src="release.picture_medium" class="w-full rounded coverart" :alt="release.title" />
|
<img :src="release.picture_medium" class="w-full rounded coverart" :alt="release.title" />
|
||||||
</div>
|
</div>
|
||||||
@ -118,6 +120,7 @@ export default {
|
|||||||
const isActualChart = newId !== 0
|
const isActualChart = newId !== 0
|
||||||
|
|
||||||
if (isActualChart) {
|
if (isActualChart) {
|
||||||
|
this.setTracklist([])
|
||||||
getChartTracks(newId).then(response => this.setTracklist(response.data))
|
getChartTracks(newId).then(response => this.setTracklist(response.data))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user