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

@@ -72,7 +72,10 @@ export default {
},
async updateResults() {
document.title = this.$route.query.search_query + " - Piped";
this.results = this.fetchResults().then(json => (this.results = json));
this.results = this.fetchResults().then(json => {
this.results = json;
this.updateWatched(this.results.items);
});
},
updateFilter() {
this.$router.replace({