forked from DebaucheryLibrarian/traxxx
Using paginated full text search for movies, combined actor search and fetch to allow combining search with filters.
This commit is contained in:
@@ -45,13 +45,14 @@ async function fetchMovies() {
|
||||
}
|
||||
|
||||
async function searchMovies() {
|
||||
const movies = await this.$store.dispatch('searchMovies', {
|
||||
const { movies, totalCount } = await this.$store.dispatch('searchMovies', {
|
||||
query: this.$route.query.query,
|
||||
limit: this.limit,
|
||||
pageNumber: this.$route.params.pageNumber,
|
||||
});
|
||||
|
||||
this.movies = movies;
|
||||
this.totalCount = movies.length;
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
|
||||
Reference in New Issue
Block a user