diff --git a/webui/src/components/display/BlobPreview.svelte b/webui/src/components/display/BlobPreview.svelte index 01eb42f..ee6ccec 100644 --- a/webui/src/components/display/BlobPreview.svelte +++ b/webui/src/components/display/BlobPreview.svelte @@ -6,9 +6,11 @@ import VideoViewer from "./blobs/VideoViewer.svelte"; import HashBadge from "./HashBadge.svelte"; import { API_URL } from "../../lib/api"; - import { includes } from "lodash"; + import { GROUP_TYPE_ADDR } from "upend/constants"; + import AddModal from "../AddModal.svelte"; export let address: string; + export let recurse = true; $: ({ entity, entityInfo } = useEntity(address)); @@ -29,15 +31,33 @@ $: web = $entityInfo?.t == "Url"; $: fragment = Boolean($entity?.get("ANNOTATES")); + $: group = $entity?.get("IS") == GROUP_TYPE_ADDR; + $: handled = - audio || video || image || text || pdf || model || web || fragment; + audio || + video || + image || + text || + pdf || + model || + web || + fragment || + (group && recurse); let imageLoaded = null; {#if handled}