Browse Source

Merge pull request #669 from doccano/bugfix/filter-state

Fix filter initial state
pull/670/head
Hiroki Nakayama 5 years ago
committed by GitHub
parent
commit
fda1e0c742
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. 5
      frontend/components/containers/annotation/FilterButton.vue

5
frontend/components/containers/annotation/FilterButton.vue

@ -59,7 +59,6 @@ export default {
watch: { watch: {
selected() { selected() {
this.initSearchOptions()
this.updateSearchOptions({ this.updateSearchOptions({
isChecked: this.items[this.selected].param, isChecked: this.items[this.selected].param,
filterName: this.getFilterOption filterName: this.getFilterOption
@ -74,6 +73,10 @@ export default {
} }
}, },
created() {
this.initSearchOptions()
},
methods: { methods: {
...mapActions('documents', ['getDocumentList']), ...mapActions('documents', ['getDocumentList']),
...mapMutations('documents', ['setCurrent', 'updateSearchOptions', 'initSearchOptions']) ...mapMutations('documents', ['setCurrent', 'updateSearchOptions', 'initSearchOptions'])

Loading…
Cancel
Save