diff --git a/flatisfy/web/js_src/components/slider.vue b/flatisfy/web/js_src/components/slider.vue index d5f476e..76fa6eb 100644 --- a/flatisfy/web/js_src/components/slider.vue +++ b/flatisfy/web/js_src/components/slider.vue @@ -1,15 +1,15 @@ @@ -27,6 +27,17 @@ export default { isotope }, + computed: { + photosURLOrLocal() { + return this.photos.map(photo => { + if (photo.local) { + return `/data/img/${photo.local}`; + } + return photo.url; + }); + }, + }, + created () { window.addEventListener('keydown', event => { if (!this.isModalOpen) {