frontend use Lightbox to enlarge mail attachments

This commit is contained in:
j3d1 2024-01-15 20:52:11 +01:00
parent 027cf4fca4
commit 7e3a151ead
3 changed files with 25 additions and 9 deletions

View file

@ -3,7 +3,7 @@
<template #body>
<AuthenticatedImage
class="img-fluid rounded mx-auto d-block mb-3 w-100"
:src="`/media/2/${file}/`"
:src="`/media/2/${hash}/`"
alt="Image not available."
id="lightbox-image"
/>
@ -21,7 +21,7 @@ import AuthenticatedImage from "@/components/AuthenticatedImage.vue";
export default {
name: 'Lightbox',
components: {Modal, AuthenticatedImage},
props: ['file']
props: ['hash']
};
</script>