Skip to content

Commit

Permalink
Search directly on change note view page load
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenstrom committed Nov 6, 2023
1 parent 506d30d commit 2d2c44c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vue-client/src/components/search/search-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default {
doSearch() {
this.helpToggled = false;
let path = '';
console.log('this.searchperimeter', this.searchPerimeter);
if (this.searchPerimeter === 'libris' || this.searchPerimeter === 'remote') {
path = `/search/${this.searchPerimeter}?${this.composeQuery()}`;
} else if (this.searchTool === 'changes') {
Expand Down Expand Up @@ -262,6 +261,11 @@ export default {
this.resetSearchParam();
}
},
searchTool(newVal, oldVal) {
if (newVal !== oldVal && newVal === 'changes') {
this.doSearch();
}
},
searchPerimeter(newVal, oldVal) {
if (newVal !== oldVal) {
this.$nextTick(() => {
Expand Down

0 comments on commit 2d2c44c

Please sign in to comment.