fix: Missing state filters (#718)

This commit is contained in:
Rémi Marseault 2023-03-19 16:20:01 +01:00 committed by GitHub
parent c9914172b5
commit 74cfecace0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 17 deletions

View file

@ -115,6 +115,8 @@ export default {
value: 'stalled_downloading',
name: this.$t('navbar.filters.stalled_downloading')
},
{ value: 'checking', name: this.$t('navbar.filters.checking') },
{ value: 'moving', name: this.$t('navbar.filters.moving') },
{ value: 'errored', name: this.$t('errored') }
]
},
@ -157,22 +159,9 @@ export default {
mounted() {
this.loadFilter()
},
watch: {
selectedState() {
this.resetSelectedTorrents()
},
selectedCategory() {
this.resetSelectedTorrents()
},
selectedTag() {
this.resetSelectedTorrents()
},
selectedTracker() {
this.resetSelectedTorrents()
}
},
methods: {
commitFilter() {
this.$store.commit('RESET_SELECTED')
this.$store.commit('UPDATE_SORT_OPTIONS', {
filter: this.selectedState,
category: this.selectedCategory,
@ -201,9 +190,6 @@ export default {
setTracker(value) {
this.selectedTracker = value
this.commitFilter()
},
resetSelectedTorrents() {
this.$store.commit('RESET_SELECTED')
}
}
}

View file

@ -139,6 +139,8 @@
"filters": {
"stalled_uploading": "Stalled Uploading",
"stalled_downloading": "Stalled Downloading",
"checking": "Checking",
"moving": "Moving",
"uncategorized": "Uncategorized",
"untagged": "Untagged",
"not_working": "Not Working"