Skip to content

Commit

Permalink
Remove hardcoding of heidicon instance URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Jul 30, 2024
1 parent 2477e02 commit c7f345d
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 } from "../../lib/stores";
import { dataLanguagesStore, easydbInstanceStore } from "../../lib/stores";
import { A, Card, P } from "flowbite-svelte";
import FieldLabel from "./FieldLabel.svelte";
Expand Down Expand Up @@ -37,13 +37,13 @@
{/if}
{#if assetImage()}
<Card class="easydb-link max-w-full h-32" img={assetImage()} horizontal>
<A href="https://heidicon.ub.uni-heidelberg.de/#/detail/{fdata._uuid}">
<A href="{$easydbInstanceStore}/#/detail/{fdata._uuid}">
{fdata["_standard"]["1"].text[$dataLanguagesStore[0]]}
</A>
</Card>
{:else}
<span class="easydb-link">
<A href="https://heidicon.ub.uni-heidelberg.de/#/detail/{fdata._uuid}">
<A href="{$easydbInstanceStore}/#/detail/{fdata._uuid}">
{fdata["_standard"]["1"].text[$dataLanguagesStore[0]]}
</A>
</span>
Expand Down

0 comments on commit c7f345d

Please sign in to comment.