mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-18 09:54:44 +02:00
Fix: Setting root socket error, Change: collection books table ordering and icons #151
This commit is contained in:
parent
d115382abe
commit
0980b6d5d5
12 changed files with 168 additions and 22 deletions
|
@ -175,6 +175,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
goPrevBook() {
|
||||
console.log('GO PREV', this.currentBookshelfIndex)
|
||||
if (this.currentBookshelfIndex - 1 < 0) return
|
||||
var prevBookId = this.bookshelfBookIds[this.currentBookshelfIndex - 1]
|
||||
var prevBook = this.$store.getters['audiobooks/getAudiobook'](prevBookId)
|
||||
|
@ -186,6 +187,7 @@ export default {
|
|||
}
|
||||
},
|
||||
goNextBook() {
|
||||
console.log('GO NEXT', this.currentBookshelfIndex)
|
||||
if (this.currentBookshelfIndex >= this.bookshelfBookIds.length - 1) return
|
||||
|
||||
var nextBookId = this.bookshelfBookIds[this.currentBookshelfIndex + 1]
|
||||
|
@ -224,6 +226,7 @@ export default {
|
|||
}
|
||||
},
|
||||
hotkey(action) {
|
||||
console.log('HOTKEY', action)
|
||||
if (action === this.$hotkeys.Modal.NEXT_PAGE) {
|
||||
this.goNextBook()
|
||||
} else if (action === this.$hotkeys.Modal.PREV_PAGE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue