Merge pull request #2346 from appwrite/fix-pro-2095

This commit is contained in:
Darshan
2025-09-10 13:49:14 +05:30
committed by GitHub
2 changed files with 15 additions and 7 deletions
@@ -14,13 +14,21 @@ export const load = async ({ parent, depends, url, route }) => {
const offset = pageToOffset(page, limit);
const { domain } = await parent();
const records = await sdk.forConsole.domains.listRecords({
domainId: domain.$id,
queries: [Query.offset(offset), Query.limit(limit)]
});
records.dnsRecords = records.dnsRecords.sort((a, b) => {
return (
Number(b.lock) - Number(a.lock) || Date.parse(b.$createdAt) - Date.parse(a.$createdAt)
);
});
return {
domain,
recordList: await sdk.forConsole.domains.listRecords({
domainId: domain.$id,
queries: [Query.offset(offset), Query.limit(limit)]
}),
limit,
offset,
limit
domain,
recordList: records
};
};
@@ -98,7 +98,7 @@
</Input.Helper>
</Layout.Stack>
<InputText id="value" label="Value" {placeholder} bind:value>
<InputText id="value" label="Value" {placeholder} bind:value required>
<Tooltip slot="info">
<Icon icon={IconInfo} size="s" />
<span slot="tooltip">