Skip to content

Commit

Permalink
Filter existing videos when adding videos to playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrahn committed Oct 12, 2023
1 parent bd541a0 commit c08cfc4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vueapp/components/Videos/VideosList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,18 @@ export default {
if (this.$route.name === 'videosTrashed') {
this.filters.trashed = true;
}
if (this.playlistForVideos?.token) {
if (!this.filters.filters) {
this.filters.filters = []
}
this.filters.filters.push({
'compare': '!=',
'type': 'playlist',
'value': this.playlistForVideos.token
});
}
this.$store.dispatch('loadMyVideos', this.filters)
.then(() => { this.videos_loading = false });
}
Expand Down

0 comments on commit c08cfc4

Please sign in to comment.