mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 00:02:02 +03:00
fix: Missing state filters (#718)
This commit is contained in:
parent
c9914172b5
commit
74cfecace0
2 changed files with 5 additions and 17 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue