mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-06 18:52:43 +02:00
This commit is contained in:
@@ -14,7 +14,8 @@ export const state = () => ({
|
||||
processingBatch: false,
|
||||
previousPath: '/',
|
||||
routeHistory: [],
|
||||
showExperimentalFeatures: false
|
||||
showExperimentalFeatures: false,
|
||||
backups: []
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
@@ -130,5 +131,8 @@ export const mutations = {
|
||||
setExperimentalFeatures(state, val) {
|
||||
state.showExperimentalFeatures = val
|
||||
localStorage.setItem('experimental', val ? 1 : 0)
|
||||
},
|
||||
setBackups(state, val) {
|
||||
state.backups = val.sort((a, b) => b.createdAt - a.createdAt)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user