Skip to content

Commit

Permalink
Filter existing videos when adding videos to playlist (#813)
Browse files Browse the repository at this point in the history
Co-authored-by: Till <[email protected]>
  • Loading branch information
ssrahn and tgloeggl authored Oct 13, 2023
1 parent 8d97280 commit cb8e210
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vueapp/components/Videos/VideosList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,19 @@ 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.loadVideos();
}
})
Expand Down

0 comments on commit cb8e210

Please sign in to comment.