fix playlist videos not updating

This commit is contained in:
robertkleinschuster 2023-05-31 18:31:40 +02:00
parent e6015229a0
commit 4991f4e8fc

View File

@ -84,7 +84,6 @@ export default {
}, },
}, },
mounted() { mounted() {
this.getPlaylistData();
const playlistId = this.$route.query.list; const playlistId = this.$route.query.list;
if (this.authenticated && playlistId?.length == 36) if (this.authenticated && playlistId?.length == 36)
this.fetchJson(this.authApiUrl() + "/user/playlists", null, { this.fetchJson(this.authApiUrl() + "/user/playlists", null, {
@ -98,6 +97,7 @@ export default {
this.isPlaylistBookmarked(); this.isPlaylistBookmarked();
}, },
activated() { activated() {
this.getPlaylistData();
window.addEventListener("scroll", this.handleScroll); window.addEventListener("scroll", this.handleScroll);
if (this.playlist) this.updateTitle(); if (this.playlist) this.updateTitle();
}, },