Using paginated full text search for movies, combined actor search and fetch to allow combining search with filters.
This commit is contained in:
@@ -22,6 +22,10 @@ function search() {
|
||||
this.$router.replace({ query: { query: this.query || undefined } });
|
||||
}
|
||||
|
||||
function resetQuery() {
|
||||
this.query = this.$route.query.query || null;
|
||||
}
|
||||
|
||||
export default {
|
||||
props: {
|
||||
placeholder: {
|
||||
@@ -34,6 +38,9 @@ export default {
|
||||
query: this.$route.query.query || null,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
$route: resetQuery,
|
||||
},
|
||||
methods: {
|
||||
search,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user