use AuthenticatedImage component in Items view
This commit is contained in:
parent
21ec29caa8
commit
c5023202fc
3 changed files with 52 additions and 14 deletions
|
@ -1,12 +1,12 @@
|
|||
<template>
|
||||
<Modal @close="$emit('close')">
|
||||
<template #body>
|
||||
<img
|
||||
<AuthenticatedImage
|
||||
class="img-fluid rounded mx-auto d-block mb-3 w-100"
|
||||
:src="`${baseUrl}/1/images/${file}`"
|
||||
:src="`/media/2/${file}/`"
|
||||
alt="Image not available."
|
||||
id="lightbox-image"
|
||||
>
|
||||
/>
|
||||
</template>
|
||||
<template #buttons>
|
||||
<button type="button" class="btn btn-secondary" @click="$emit('close')">Cancel</button>
|
||||
|
@ -16,15 +16,11 @@
|
|||
|
||||
<script>
|
||||
import Modal from '@/components/Modal';
|
||||
import config from '../config';
|
||||
|
||||
export default {
|
||||
name: 'Lightbox',
|
||||
components: {Modal},
|
||||
props: ['file'],
|
||||
data: () => ({
|
||||
baseUrl: config.service.url,
|
||||
}),
|
||||
props: ['file']
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue