prefix delete fix and bold id of selected row

This commit is contained in:
2025-10-04 17:01:26 -04:00
parent fdc2349de1
commit 7a1e0c822c
4 changed files with 10 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ export async function DELETE({ params }) {
let { name } = params;
await db.delete(prefixes).where(eq(prefixes.name, name))
if (env.TAM3_REMOTE) {
const res = await fetch(`${env.TAM3_REMOTE}/api/prefixes/?api_key=${env.TAM3_REMOTE_KEY}&prefix_name=${name}`);
const res = await fetch(`${env.TAM3_REMOTE}/api/prefixes/?api_key=${env.TAM3_REMOTE_KEY}&prefix_name=${name}`, {method: 'DELETE'});
if (!res.ok) {
return new Response(JSON.stringify({status: "Issue deleting prefix."}), {status: res.status, statusText: res.statusText});
} else {

View File

@@ -128,6 +128,9 @@
tbody tr:nth-child(2n) {
background-color: #eeeeee;
}
tbody tr:focus-within td:first-child {
font-weight: bold;
}
input {
background: transparent;
border: solid 1px #000000;

View File

@@ -134,6 +134,9 @@
tbody tr:nth-child(2n) {
background-color: #eeeeee;
}
tbody tr:focus-within td:first-child {
font-weight: bold;
}
input {
background: transparent;
border: solid 1px #000000;

View File

@@ -136,6 +136,9 @@
tbody tr:nth-child(2n) {
background-color: #eeeeee;
}
tbody tr:focus-within td:first-child {
font-weight: bold;
}
input {
background: transparent;
border: solid 1px #000000;