Skip to content

Commit 0bf8c83

Browse files
committed
fix: status update for domains.
1 parent 5a7ab6b commit 0bf8c83

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
import { Link } from '$lib/elements';
66
import type { Models } from '@appwrite.io/console';
77
8-
let { domain, retryVerification }: { domain: Models.Domain; retryVerification: () => void } =
9-
$props();
8+
let {
9+
domain,
10+
retryVerification
11+
}: {
12+
domain: Models.Domain;
13+
retryVerification: () => void;
14+
} = $props();
1015
11-
const isDomainVerified = domain.nameservers.toLowerCase() === 'appwrite';
16+
const isDomainVerified = $derived(domain.nameservers.toLowerCase() === 'appwrite');
1217
13-
const metrics = [
18+
const metrics = $derived([
1419
{
1520
value: isDomainVerified ? 'Verified' : 'Not verified',
1621
description: 'Status'
@@ -40,7 +45,7 @@
4045
value: domain?.renewalPrice || '-',
4146
description: 'Renewal price'
4247
}
43-
];
48+
]);
4449
</script>
4550

4651
<Layout.Grid gap="m" columnsL={6} columns={3} columnsS={2} columnsXXS={1}>

0 commit comments

Comments
 (0)