Shows media link status when connected to a server

This commit is contained in:
Tony Edwards 2023-12-08 09:08:51 +00:00
parent 0c72889917
commit be23c6703f

View file

@ -27,7 +27,7 @@
<p v-if="subtitle" class="text-gray-100 text-base">{{ subtitle }}</p>
</div>
<div v-if="hasLocal" class="mx-1">
<div v-if="hasLocal && this.socketConnected" class="mx-1">
<div v-if="isLocalOnly" class="w-full rounded-md bg-warning/10 border border-warning p-4">
<p class="text-sm">{{ $strings.MessageMediaNotLinkedToServer }}</p>
</div>
@ -448,6 +448,9 @@ export default {
if (width * this.bookCoverAspectRatio > 325) width = 325 / this.bookCoverAspectRatio
return width
},
socketConnected () {
return this.$store.state.socketConnected
}
},
methods: {