prefix delete fix and bold id of selected row
This commit is contained in:
@@ -26,7 +26,7 @@ export async function DELETE({ params }) {
|
|||||||
let { name } = params;
|
let { name } = params;
|
||||||
await db.delete(prefixes).where(eq(prefixes.name, name))
|
await db.delete(prefixes).where(eq(prefixes.name, name))
|
||||||
if (env.TAM3_REMOTE) {
|
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) {
|
if (!res.ok) {
|
||||||
return new Response(JSON.stringify({status: "Issue deleting prefix."}), {status: res.status, statusText: res.statusText});
|
return new Response(JSON.stringify({status: "Issue deleting prefix."}), {status: res.status, statusText: res.statusText});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -128,6 +128,9 @@
|
|||||||
tbody tr:nth-child(2n) {
|
tbody tr:nth-child(2n) {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
}
|
}
|
||||||
|
tbody tr:focus-within td:first-child {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
input {
|
input {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: solid 1px #000000;
|
border: solid 1px #000000;
|
||||||
|
|||||||
@@ -134,6 +134,9 @@
|
|||||||
tbody tr:nth-child(2n) {
|
tbody tr:nth-child(2n) {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
}
|
}
|
||||||
|
tbody tr:focus-within td:first-child {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
input {
|
input {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: solid 1px #000000;
|
border: solid 1px #000000;
|
||||||
|
|||||||
@@ -136,6 +136,9 @@
|
|||||||
tbody tr:nth-child(2n) {
|
tbody tr:nth-child(2n) {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
}
|
}
|
||||||
|
tbody tr:focus-within td:first-child {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
input {
|
input {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: solid 1px #000000;
|
border: solid 1px #000000;
|
||||||
|
|||||||
Reference in New Issue
Block a user