Skip to content

Commit 0059958

Browse files
authored
Merge pull request #2229 from appwrite/feat-update-custom-domain-table
2 parents d7735f0 + 9f29e4e commit 0059958

1 file changed

Lines changed: 17 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: 17 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,11 +80,24 @@
7980
{record.type}
8081
</Typography.Text>
8182
{:else if column.id === 'value'}
82-
{@const isARecord = record.value === 'a.a.a.a'}
83-
{#if isARecord}
83+
{@const isARecord = record.type.toLowerCase() === 'a'}
84+
{@const isAAAARecord = record.type.toLowerCase() === 'aaaa'}
85+
{@const isCAARecord = record.type.toLowerCase() === 'caa'}
86+
{#if record.lock && (isARecord || isAAAARecord)}
8487
<!-- to align with InteractiveText -->
8588
<div style:padding-inline-start="4px">
86-
<Typography.Text>Served by Appwrite</Typography.Text>
89+
<Badge
90+
variant="secondary"
91+
size="s"
92+
content="Served by Appwrite" />
93+
</div>
94+
{:else if record.lock && isCAARecord}
95+
<!-- to align with InteractiveText -->
96+
<div style:padding-inline-start="4px">
97+
<Badge
98+
variant="secondary"
99+
size="s"
100+
content="Generated by Appwrite" />
87101
</div>
88102
{:else}
89103
<InteractiveText variant="copy" text={record.value} isVisible />

0 commit comments

Comments
 (0)