Skip to content

Commit 9f29e4e

Browse files
committed
Use badge for appwrite served values
1 parent f420d22 commit 9f29e4e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • src/routes/(console)/organization-[organization]/domains/domain-[domain]

src/routes/(console)/organization-[organization]/domains/domain-[domain]/table.svelte

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import { PaginationWithLimit } from '$lib/components';
1212
import {
1313
ActionMenu,
14+
Badge,
1415
Button,
1516
InteractiveText,
1617
Icon,
@@ -79,18 +80,24 @@
7980
{record.type}
8081
</Typography.Text>
8182
{:else if column.id === 'value'}
82-
{@const isARecord = record.value === 'a.a.a.a'}
83+
{@const isARecord = record.type.toLowerCase() === 'a'}
8384
{@const isAAAARecord = record.type.toLowerCase() === 'aaaa'}
8485
{@const isCAARecord = record.type.toLowerCase() === 'caa'}
8586
{#if record.lock && (isARecord || isAAAARecord)}
8687
<!-- to align with InteractiveText -->
8788
<div style:padding-inline-start="4px">
88-
<Typography.Text>Served by Appwrite</Typography.Text>
89+
<Badge
90+
variant="secondary"
91+
size="s"
92+
content="Served by Appwrite" />
8993
</div>
9094
{:else if record.lock && isCAARecord}
9195
<!-- to align with InteractiveText -->
9296
<div style:padding-inline-start="4px">
93-
<Typography.Text>Generated by Appwrite</Typography.Text>
97+
<Badge
98+
variant="secondary"
99+
size="s"
100+
content="Generated by Appwrite" />
94101
</div>
95102
{:else}
96103
<InteractiveText variant="copy" text={record.value} isVisible />

0 commit comments

Comments
 (0)