adapt to actual api

This commit is contained in:
Akis 2022-11-20 20:25:34 +02:00
parent c52f4923ff
commit 514ec92976
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
2 changed files with 5 additions and 5 deletions

View File

@ -26,14 +26,14 @@
icon={item.icon}
>
<LinksOuter>
<InstanceLink url={item.link} {item} type="main" />
<InstanceLink url={item.link} item={item.status} type="main" />
{#if item.us}
<InstanceLink url={item.us} {item} type="us" />
<InstanceLink url={item.us} item={item.statusUs} type="us" />
{/if}
{#if item.backup}
<InstanceLink url={item.backup} {item} type="backup" />
<InstanceLink url={item.backup} item={item.statusBp} type="backup" />
{/if}
</LinksOuter>
</CardInner>

View File

@ -6,9 +6,9 @@
export let type: "main" | "us" | "backup";
</script>
<Link {url} class="web {item.status === 200 ? "" : "pointer-events-none cursor-default opacity-50"}">
<Link {url} class="web {item === 200 ? "" : "pointer-events-none cursor-default opacity-50"}">
<div class="withText">
<div class="{item.status === 200 ? "i-fa6-solid:arrow-up-right-from-square" : "i-fa6-solid:xmark"}" />
<div class="{item === 200 ? "i-fa6-solid:arrow-up-right-from-square" : "i-fa6-solid:xmark"}" />
<span>
{#if type === "main"}
Visit