mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-08 00:54:33 +01:00
31 lines
704 B
Vue
31 lines
704 B
Vue
<template>
|
|
<modals-modal v-model="show" name="cover" :width="'90%'" :height="'90%'" :contentMarginTop="0">
|
|
<div class="w-full h-full" @click="show = false">
|
|
<img loading="lazy" :src="rawCoverUrl" class="w-full h-full z-10 object-scale-down" />
|
|
</div>
|
|
</modals-modal>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
show: {
|
|
get() {
|
|
return this.$store.state.globals.showRawCoverPreviewModal
|
|
},
|
|
set(val) {
|
|
this.$store.commit('globals/setShowRawCoverPreviewModal', val)
|
|
}
|
|
},
|
|
rawCoverUrl() {
|
|
return this.$store.state.globals.selectedRawCoverUrl
|
|
}
|
|
},
|
|
methods: {},
|
|
mounted() {}
|
|
}
|
|
</script>
|