Add: Sortable collection books, play from collections, collection book table row updates #151

This commit is contained in:
advplyr
2021-11-07 18:11:29 -06:00
parent 0980b6d5d5
commit 5e5792c0f8
21 changed files with 270 additions and 70 deletions
+4
View File
@@ -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
},
+1
View File
@@ -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)