mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 02:05:06 +02:00
Sorting, fix user object bug, add settings module
This commit is contained in:
parent
e1aa95af97
commit
30ca0bb95f
18 changed files with 164 additions and 17 deletions
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue