mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-13 02:19:46 +01:00
Sorting, fix user object bug, add settings module
This commit is contained in:
20
client/store/settings.js
Normal file
20
client/store/settings.js
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
export const state = () => ({
|
||||
orderBy: 'title',
|
||||
orderDesc: false
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
|
||||
export const mutations = {
|
||||
setSettings(state, settings) {
|
||||
state.orderBy = settings.orderBy
|
||||
state.orderDesc = settings.orderDesc
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user