From 1d3574d38909bc9aae2792d839023e296fb25791 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 23 Dec 2021 16:50:42 -0600 Subject: Add email unsubcribe link, update about me, add hello.js --- src/html/admin.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/html/admin.html') diff --git a/src/html/admin.html b/src/html/admin.html index 29e4b87..d15598a 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -18,7 +18,7 @@ showSessionTable: false, showUrlTable: false, showLogData: false, - showEmailData: false, + showEmailData: true, }, created() { fetch(new Request('/admin/stats')).then(response => response.json()) @@ -28,6 +28,15 @@ } }); } + function delete_email(id, name){ + if (confirm(`Delete ${name}?`)) { + let path = `/admin/email/${id}` + fetch(new Request(path, { + method: 'delete', + })).then(response => response.json()) + .then(response => this.emails = response); + } + } @@ -130,10 +139,12 @@ Name Address + {{item.name}} {{item.address}} + -- cgit v1.2.3