mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-31 07:09:53 +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:
parent
2180e2f649
commit
a391db5dc2
1 changed files with 3 additions and 3 deletions
|
@ -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 : ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue