Use WagtailImage in Image content block

This commit is contained in:
Lorenz Padberg 2024-04-09 14:20:38 +02:00
parent 9645aed5f2
commit 6d920c2358
1 changed files with 5 additions and 2 deletions

View File

@ -1,15 +1,18 @@
<template>
<img
<wagtail-image
:src="value.path"
alt=""
class="image-block"
@click="openFullscreen"
/>
></wagtail-image>
</template>
<script>
import WagtailImage from '@/components/ui/WagtailImage.vue';
export default {
props: ['value'],
components: { WagtailImage },
methods: {
openFullscreen() {
this.$store.dispatch('showFullscreenImage', this.value.path);