fix ordering reset #133

This commit is contained in:
Daan Wijns 2021-01-30 11:08:06 +01:00
parent 16aa946d98
commit e58e93d87e

View file

@ -93,19 +93,15 @@ export default {
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(),