Skip to content

Commit

Permalink
Reset isImageLoading on lightbox close
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax committed Nov 7, 2023
1 parent 6523b79 commit 99b52a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ui-light-box/LightBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -65,6 +65,10 @@ export default defineComponent({
);
};
watch(isLightBoxOpen, () => {
isImageLoading.value = true;
});
return {
close,
download,
Expand Down

0 comments on commit 99b52a7

Please sign in to comment.