Skip to content

Commit

Permalink
Do not link back into the instance
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Aug 30, 2024
1 parent 43c2cb3 commit be8f066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/fields/Link.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { fieldData, hasField } from "../../lib/easydbHelpers";
import { dataLanguagesStore, easydbInstanceStore } from "../../lib/stores";
import { dataLanguagesStore, pushUUID } from "../../lib/stores";
import { A, Card, P } from "flowbite-svelte";
import FieldLabel from "./FieldLabel.svelte";
Expand Down Expand Up @@ -36,13 +36,13 @@
{/if}
{#if assetImage()}
<Card class="easydb-link max-w-full h-32" img={assetImage()} horizontal>
<A href="{$easydbInstanceStore}/#/detail/{fdata._uuid}">
<A on:click={() => { pushUUID(fdata._uuid); }}>
{fdata["_standard"]["1"].text[$dataLanguagesStore[0]]}
</A>
</Card>
{:else}
<span class="easydb-link">
<A href="{$easydbInstanceStore}/#/detail/{fdata._uuid}">
<A on:click={() => { pushUUID(fdata._uuid); }}>
{fdata["_standard"]["1"].text[$dataLanguagesStore[0]]}
</A>
</span>
Expand Down

0 comments on commit be8f066

Please sign in to comment.