Use record id for edits and deletions

This commit is contained in:
Melon 2024-08-02 21:30:49 +01:00
parent cb25cf000a
commit 5c943c6636
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -47,7 +47,7 @@
const apiAzalea = import.meta.env.VITE_API_AZALEA; const apiAzalea = import.meta.env.VITE_API_AZALEA;
const table = new RestTable<AnyRecord>(apiAzalea + "/domains/" + $domainOption + "/records", (item: AnyRecord) => item.name); const table = new RestTable<AnyRecord>(apiAzalea + "/domains/" + $domainOption + "/records", (item: AnyRecord) => item.id);
domainOption.subscribe(x => { domainOption.subscribe(x => {
table.changeUrl(apiAzalea + "/domains/" + x + "/records"); table.changeUrl(apiAzalea + "/domains/" + x + "/records");