mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-29 21:11:51 +03:00
fix ordering reset #133
This commit is contained in:
parent
16aa946d98
commit
e58e93d87e
1 changed files with 2 additions and 6 deletions
|
@ -92,20 +92,16 @@ export default {
|
||||||
const { data } = await qbit.getAppPreferences()
|
const { data } = await qbit.getAppPreferences()
|
||||||
state.settings = data
|
state.settings = data
|
||||||
},
|
},
|
||||||
UPDATE_SORT_OPTIONS: (state, {
|
UPDATE_SORT_OPTIONS: (state, {
|
||||||
reverse = false,
|
|
||||||
hashes = [],
|
hashes = [],
|
||||||
filter = null,
|
filter = null,
|
||||||
category = null,
|
category = null,
|
||||||
tracker = null,
|
tracker = null
|
||||||
sort = null
|
|
||||||
}) => {
|
}) => {
|
||||||
state.sort_options.reverse = reverse
|
|
||||||
state.sort_options.hashes = hashes
|
state.sort_options.hashes = hashes
|
||||||
state.sort_options.filter = filter
|
state.sort_options.filter = filter
|
||||||
state.sort_options.category = category
|
state.sort_options.category = category
|
||||||
state.sort_options.tracker = tracker
|
state.sort_options.tracker = tracker
|
||||||
state.sort_options.sort = sort
|
|
||||||
},
|
},
|
||||||
FETCH_CATEGORIES: async state => state.categories = Object.values(await (qbit.getCategories())),
|
FETCH_CATEGORIES: async state => state.categories = Object.values(await (qbit.getCategories())),
|
||||||
FETCH_SEARCH_PLUGINS: async state => state.searchPlugins = await qbit.getSearchPlugins(),
|
FETCH_SEARCH_PLUGINS: async state => state.searchPlugins = await qbit.getSearchPlugins(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue