Add: Library list view

This commit is contained in:
advplyr 2021-11-19 10:29:26 -06:00
parent fd79baed61
commit b6dd37b7f6
3 changed files with 30 additions and 8 deletions

View file

@ -96,6 +96,7 @@ export default {
var bookshelfView = this.isListView ? 'list' : 'grid'
this.$localStore.setBookshelfView(bookshelfView)
this.$store.commit('setBookshelfView', bookshelfView)
},
updateOrder() {
this.saveSettings()
@ -113,7 +114,7 @@ export default {
var bookshelfView = await this.$localStore.getBookshelfView()
this.isListView = bookshelfView === 'list'
this.bookshelfReady = true
console.log('Bookshelf view', bookshelfView)
this.$store.commit('setBookshelfView', bookshelfView)
},
settingsUpdated(settings) {
for (const key in settings) {