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:
jmt-gh 2022-06-09 11:57:44 -07:00
parent bad8d10a18
commit 2180e2f649

View file

@ -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 : ''
},