mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-12 21:44:24 +02:00
Add: Sortable collection books, play from collections, collection book table row updates #151
This commit is contained in:
@@ -16,6 +16,7 @@ export const state = () => ({
|
||||
processingBatch: false,
|
||||
previousPath: '/',
|
||||
routeHistory: [],
|
||||
isRoutingBack: false,
|
||||
showExperimentalFeatures: false,
|
||||
backups: [],
|
||||
bookshelfBookIds: [],
|
||||
@@ -78,6 +79,9 @@ export const mutations = {
|
||||
setRouteHistory(state, val) {
|
||||
state.routeHistory = val
|
||||
},
|
||||
setIsRoutingBack(state, val) {
|
||||
state.isRoutingBack = val
|
||||
},
|
||||
setPreviousPath(state, val) {
|
||||
state.previousPath = val
|
||||
},
|
||||
|
||||
@@ -136,6 +136,7 @@ export const mutations = {
|
||||
setCollections(state, collections) {
|
||||
state.collectionsLoaded = true
|
||||
state.collections = collections
|
||||
state.collectionsListeners.forEach((listener) => listener.meth())
|
||||
},
|
||||
addUpdateCollection(state, collection) {
|
||||
var index = state.collections.findIndex(c => c.id === collection.id)
|
||||
|
||||
Reference in New Issue
Block a user