mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2346 from appwrite/fix-pro-2095
This commit is contained in:
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
+1
-1
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user