Skip to content

Commit

Permalink
fixes clear all
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed May 16, 2024
1 parent f41c0de commit fb670d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SearchSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
<TechnologyTypeSelector
v-if="searchSettings.resultTypes.indexOf(platformResultType) === -1"
v-model="searchSettings.platforms"
ref="technologyTypeSelector"
:platforms="platforms"
:selected-technology-types.sync="searchSettings.technologyTypes"
:selectedTechnologyTypes.sync="searchSettings.technologyTypes"
:disabled="platformDisabled"
:loading="platformLoading"
class="mb-1"/>
Expand Down Expand Up @@ -134,10 +135,9 @@ export default {
},
methods: {
clearAllSelections() {
this.$refs.technologyTypeSelector.clear()
this.searchSettings.annotations = [];
this.searchSettings.platforms = [];
this.searchSettings.taxon = [];
this.searchSettings.technologyTypes = [];
this.searchSettings.query = undefined;
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/components/TechnologyTypeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export default {
}
return [v.id];
});
},
clear() {
this.selectedValues = []
}
},
watch: {
Expand Down

0 comments on commit fb670d6

Please sign in to comment.