mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-19 02:09:37 +00:00
parent
a2cd755ffa
commit
b37b382ea7
13 changed files with 163 additions and 45 deletions
|
|
@ -42,10 +42,20 @@ export default {
|
|||
return this.$store.state.streamLibraryItem
|
||||
},
|
||||
currentPage() {
|
||||
if (!this.$route.name) return 'Settings'
|
||||
if (!this.$route.name) return this.$strings.HeaderSettings
|
||||
var routeName = this.$route.name.split('-')
|
||||
if (routeName.length > 0) return routeName.slice(1).join('-')
|
||||
return 'Settings'
|
||||
if (routeName.length > 0) {
|
||||
const pageName = routeName.slice(1).join('-')
|
||||
if (pageName === 'log') return this.$strings.HeaderLogs
|
||||
else if (pageName === 'backups') return this.$strings.HeaderBackups
|
||||
else if (pageName === 'libraries') return this.$strings.HeaderLibraries
|
||||
else if (pageName === 'notifications') return this.$strings.HeaderNotifications
|
||||
else if (pageName === 'sessions') return this.$strings.HeaderListeningSessions
|
||||
else if (pageName === 'stats') return this.$strings.HeaderYourStats
|
||||
else if (pageName === 'library-stats') return this.$strings.HeaderLibraryStats
|
||||
else if (pageName === 'users') return this.$strings.HeaderUsers
|
||||
}
|
||||
return this.$strings.HeaderSettings
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue