mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-26 13:24:39 +02:00
Change what is being called for version
If I tried to grab version directly in the computed section, it would throw a null error on reload in browser (didn't see any issue on an actual device). Doing it this way fixes that
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="absolute bottom-0 left-0 w-full py-6 px-6 text-gray-300">
|
<div class="absolute bottom-0 left-0 w-full py-6 px-6 text-gray-300">
|
||||||
<div v-if="serverConnectionConfig" class="mb-4 flex justify-center">
|
<div v-if="serverConnectionConfig" class="mb-4 flex justify-center">
|
||||||
<p class="text-xs" style="word-break: break-word">{{ serverConnectionConfig.address }} (v{{serverVersion}})</p>
|
<p class="text-xs" style="word-break: break-word">{{ serverConnectionConfig.address }} (v{{serverSettings.version}})</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<p class="text-xs">{{ $config.version }}</p>
|
<p class="text-xs">{{ $config.version }}</p>
|
||||||
@@ -71,8 +71,8 @@ export default {
|
|||||||
serverConnectionConfig() {
|
serverConnectionConfig() {
|
||||||
return this.$store.state.user.serverConnectionConfig
|
return this.$store.state.user.serverConnectionConfig
|
||||||
},
|
},
|
||||||
serverVersion() {
|
serverSettings() {
|
||||||
return this.$store.state.serverSettings.version || 'Version Unavailable'
|
return this.$store.state.serverSettings || 'Version Unavailable'
|
||||||
},
|
},
|
||||||
username() {
|
username() {
|
||||||
return this.user ? this.user.username : ''
|
return this.user ? this.user.username : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user