Initial ui redo progress #1

Merged
breadone merged 23 commits from ui-redo into main 2026-02-17 18:29:59 +13:00
Showing only changes of commit 817c857fde - Show all commits

View File

@@ -57,17 +57,11 @@ export async function updateEntry(entry) {
} }
export async function deleteEntry(entry) { export async function deleteEntry(entry) {
const res = await fetch(`/api/entry/delete`, { await fetch(`/api/entry/delete`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify({ id: entry.id }) body: JSON.stringify({ id: entry.id })
}); });
if (res.ok) {
entry = null;
} else {
alert('Failed to delete entry');
}
} }