mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-05 20:41:57 +02:00
+13
-3
@@ -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: {
|
||||
|
||||
+16
-14
@@ -38,20 +38,6 @@ export default {
|
||||
searchText: null,
|
||||
newServerSettings: {},
|
||||
logColors: ['yellow-200', 'gray-400', 'info', 'warning', 'error', 'red-800', 'blue-400'],
|
||||
logLevels: [
|
||||
{
|
||||
value: 1,
|
||||
text: 'Debug'
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
text: 'Info'
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
text: 'Warn'
|
||||
}
|
||||
],
|
||||
loadedLogs: []
|
||||
}
|
||||
},
|
||||
@@ -66,6 +52,22 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
logLevels() {
|
||||
return [
|
||||
{
|
||||
value: 1,
|
||||
text: this.$strings.LabelLogLevelDebug
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
text: this.$strings.LabelLogLevelInfo
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
text: this.$strings.LabelLogLevelWarn
|
||||
}
|
||||
]
|
||||
},
|
||||
logLevelItems() {
|
||||
if (process.env.NODE_ENV === 'production') return this.logLevels
|
||||
this.logLevels.unshift({ text: 'Trace', value: 0 })
|
||||
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
return this.$store.getters['users/getIsUserOnline'](this.user.id)
|
||||
},
|
||||
userItems() {
|
||||
var userItems = [{ value: '', text: 'All Users' }]
|
||||
var userItems = [{ value: '', text: this.$strings.LabelAllUsers }]
|
||||
return userItems.concat(this.users.map((u) => ({ value: u.id, text: u.username })))
|
||||
},
|
||||
filteredUserUsername() {
|
||||
|
||||
Reference in New Issue
Block a user