update watched videos in each separate component

This commit is contained in:
vr10t
2023-02-19 13:41:13 +00:00
parent 005a938261
commit 949527ed43
6 changed files with 12 additions and 3 deletions

View File

@@ -106,7 +106,10 @@ export default {
async getPlaylistData() {
this.fetchPlaylist()
.then(data => (this.playlist = data))
.then(() => this.updateTitle());
.then(() => {
this.updateTitle();
this.updateWatched(this.playlist.relatedStreams);
});
},
async updateTitle() {
document.title = this.playlist.name + " - Piped";