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 fd41d23
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
7 changes: 6 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,12 @@ export default {
this.resetSearchParam();
}
},
searchTool(newVal, oldVal) {
if (newVal !== oldVal && newVal === 'changes') {
this.clearInputs();
this.doSearch();
}
},
searchPerimeter(newVal, oldVal) {
if (newVal !== oldVal) {
this.$nextTick(() => {
Expand Down
24 changes: 24 additions & 0 deletions vue-client/src/views/ChangeNotes.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<script>
import Find from './Find.vue';
export default {
name: 'ChangeNotes',
components: {
Find,
},
computed: {
},
methods: {
},
mounted() {
},
};
</script>

<template>
<find v-if="$route.params.tool === 'changes'"></find>
</template>

<style lang="less">
</style>

0 comments on commit fd41d23

Please sign in to comment.