mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-02 10:04:42 +02:00
Add: Library list view
This commit is contained in:
parent
fd79baed61
commit
b6dd37b7f6
3 changed files with 30 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue