[ui] fix file links

feat/vaults
Tomáš Mládek 2021-12-01 16:01:32 +01:00
parent abbc38a1f7
commit 6e3ce3b1ba
2 changed files with 4 additions and 4 deletions

View File

@ -37,9 +37,9 @@
<Marquee>
<div class="label" class:resolving title={label}>
{#if isFile}
<UpLink to={{ entity: address }}>
{address}
</UpLink>
<a href="/api/raw/{address}" target="_blank">
{label}
</a>
{:else if link}
<UpLink to={{ entity: address }}>
{label}

View File

@ -84,7 +84,7 @@
<h2>
<Address
{address}
isFile={$backlinks.some(([_, e]) => e.attribute === "FILE_IS")}
isFile={Object.values(allTypes).some((t) => t.name === "BLOB")}
/>
</h2>
<BlobPreview {address} />