diff --git a/webui/src/lib/components/display/BlobViewer.svelte b/webui/src/lib/components/display/BlobViewer.svelte index 1868be6..d3c9e45 100644 --- a/webui/src/lib/components/display/BlobViewer.svelte +++ b/webui/src/lib/components/display/BlobViewer.svelte @@ -11,6 +11,8 @@ import api from '$lib/api'; import { createEventDispatcher } from 'svelte'; import { getTypes } from '$lib/util/mediatypes'; + import { i18n } from '$lib/i18n'; + import Icon from '$lib/components/utils/Icon.svelte'; const dispatch = createEventDispatcher(); @@ -18,6 +20,7 @@ export let detail: boolean; let handled = false; + let confirmedLoad = false; $: ({ entity, entityInfo } = useEntity(address)); $: types = $entity && $entityInfo && getTypes($entity, $entityInfo); @@ -58,8 +61,17 @@ {#if types?.image} {/if} - {#if types?.pdf && size < 15_000} -