mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-19 18:34:25 +02:00
Add:Audio player next/prev chapter buttons
This commit is contained in:
parent
3171ce5aba
commit
2d5e4ebcf0
6 changed files with 61 additions and 12 deletions
|
@ -38,6 +38,12 @@ export default {
|
|||
userIsAdminOrUp() {
|
||||
return this.$store.getters['user/getIsAdminOrUp']
|
||||
},
|
||||
user() {
|
||||
return this.$store.state.user.user || {}
|
||||
},
|
||||
userId() {
|
||||
return this.user.id
|
||||
},
|
||||
configRoutes() {
|
||||
if (!this.userIsAdminOrUp) {
|
||||
return [
|
||||
|
@ -87,6 +93,11 @@ export default {
|
|||
title: 'Your Stats',
|
||||
path: '/config/stats'
|
||||
})
|
||||
configRoutes.push({
|
||||
id: 'config-users-id-sessions',
|
||||
title: 'Your Sessions',
|
||||
path: `/config/users/${this.userId}/sessions`
|
||||
})
|
||||
}
|
||||
|
||||
return configRoutes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue