Browse Source
Merge pull request #669 from doccano/bugfix/filter-state
Fix filter initial state
pull/670/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
frontend/components/containers/annotation/FilterButton.vue
|
|
@ -59,7 +59,6 @@ export default { |
|
|
|
|
|
|
|
watch: { |
|
|
|
selected() { |
|
|
|
this.initSearchOptions() |
|
|
|
this.updateSearchOptions({ |
|
|
|
isChecked: this.items[this.selected].param, |
|
|
|
filterName: this.getFilterOption |
|
|
@ -74,6 +73,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
this.initSearchOptions() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapActions('documents', ['getDocumentList']), |
|
|
|
...mapMutations('documents', ['setCurrent', 'updateSearchOptions', 'initSearchOptions']) |
|
|
|