mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-05-24 06:35:13 +00:00
Add server version to drawer
This commit adds the server version next to the URL. It also adds a new style to ensure that the text wraps properly if the URL is too long. Trying text-wrap didn't work.
This commit is contained in:
parent
bad8d10a18
commit
2180e2f649
1 changed files with 4 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
<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">
|
||||
<p class="text-xs">{{ serverConnectionConfig.address }}</p>
|
||||
<p class="text-xs" style="word-break: break-word">{{ serverConnectionConfig.address }} (v{{serverVersion}})</p>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<p class="text-xs">{{ $config.version }}</p>
|
||||
|
|
@ -71,6 +71,9 @@ export default {
|
|||
serverConnectionConfig() {
|
||||
return this.$store.state.user.serverConnectionConfig
|
||||
},
|
||||
serverVersion() {
|
||||
return this.$store.state.serverSettings.version || 'Version Unavailable'
|
||||
},
|
||||
username() {
|
||||
return this.user ? this.user.username : ''
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue