From af1b23731af89d9334d112907908e6baec53c511 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Fri, 21 Feb 2025 16:24:41 -0700 Subject: [PATCH] gui CREATE button --- cmd/http/public/transactions.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html index a7dd193..ce8126a 100644 --- a/cmd/http/public/transactions.html +++ b/cmd/http/public/transactions.html @@ -187,6 +187,15 @@ })) } + function create() { + http("POST", "/api/create", (body, status) => { + if (status != 200) + throw(`Unexpected status ${status}: ${body}`) + loadTransactions([]) + load() + }, JSON.stringify({})) + } + function stage(who, contributesToHouse) { var d = new Date() const zeroPad = (num, places) => String(num).padStart(places, '0') @@ -241,6 +250,11 @@
Register +
+ +