mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-31 23:57:15 +02:00
Shows media link status when connected to a server
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<p v-if="subtitle" class="text-gray-100 text-base">{{ subtitle }}</p>
|
<p v-if="subtitle" class="text-gray-100 text-base">{{ subtitle }}</p>
|
||||||
</div>
|
</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">
|
<div v-if="isLocalOnly" class="w-full rounded-md bg-warning/10 border border-warning p-4">
|
||||||
<p class="text-sm">{{ $strings.MessageMediaNotLinkedToServer }}</p>
|
<p class="text-sm">{{ $strings.MessageMediaNotLinkedToServer }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -448,6 +448,9 @@ export default {
|
|||||||
|
|
||||||
if (width * this.bookCoverAspectRatio > 325) width = 325 / this.bookCoverAspectRatio
|
if (width * this.bookCoverAspectRatio > 325) width = 325 / this.bookCoverAspectRatio
|
||||||
return width
|
return width
|
||||||
|
},
|
||||||
|
socketConnected () {
|
||||||
|
return this.$store.state.socketConnected
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user