Skip to content

Commit fd41d23

Browse files
committed
Search directly on change note view page load
1 parent 506d30d commit fd41d23

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

vue-client/src/components/search/search-form.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export default {
6262
doSearch() {
6363
this.helpToggled = false;
6464
let path = '';
65-
console.log('this.searchperimeter', this.searchPerimeter);
6665
if (this.searchPerimeter === 'libris' || this.searchPerimeter === 'remote') {
6766
path = `/search/${this.searchPerimeter}?${this.composeQuery()}`;
6867
} else if (this.searchTool === 'changes') {
@@ -262,6 +261,12 @@ export default {
262261
this.resetSearchParam();
263262
}
264263
},
264+
searchTool(newVal, oldVal) {
265+
if (newVal !== oldVal && newVal === 'changes') {
266+
this.clearInputs();
267+
this.doSearch();
268+
}
269+
},
265270
searchPerimeter(newVal, oldVal) {
266271
if (newVal !== oldVal) {
267272
this.$nextTick(() => {

vue-client/src/views/ChangeNotes.vue

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script>
2+
import Find from './Find.vue';
3+
4+
export default {
5+
name: 'ChangeNotes',
6+
components: {
7+
Find,
8+
},
9+
computed: {
10+
},
11+
methods: {
12+
},
13+
mounted() {
14+
},
15+
};
16+
</script>
17+
18+
<template>
19+
<find v-if="$route.params.tool === 'changes'"></find>
20+
</template>
21+
22+
<style lang="less">
23+
24+
</style>

0 commit comments

Comments
 (0)