From 99b52a787837dea3d891d34daae398c10f62ff73 Mon Sep 17 00:00:00 2001 From: Max Bischof Date: Tue, 7 Nov 2023 15:30:40 +0100 Subject: [PATCH] Reset isImageLoading on lightbox close --- src/components/ui-light-box/LightBox.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/ui-light-box/LightBox.vue b/src/components/ui-light-box/LightBox.vue index 465f691c75..4856965c73 100644 --- a/src/components/ui-light-box/LightBox.vue +++ b/src/components/ui-light-box/LightBox.vue @@ -45,7 +45,7 @@ import { downloadFile } from "@/utils/fileHelper"; import { mdiClose, mdiFileDocumentOutline, mdiTrayArrowDown } from "@mdi/js"; import { onKeyStroke } from "@vueuse/core"; -import { defineComponent, ref } from "vue"; +import { defineComponent, ref, watch } from "vue"; import { useInternalLightBox } from "./LightBox.composable"; import { ContentElementTitleIcon, ContentElementTitle } from "@ui-board"; @@ -65,6 +65,10 @@ export default defineComponent({ ); }; + watch(isLightBoxOpen, () => { + isImageLoading.value = true; + }); + return { close, download,