From 78a59b347667043fb4903fcd88226d142df7a8dc Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 29 Apr 2024 21:14:05 +0200 Subject: [PATCH] webadmin: after looking up cid, show it seems like the useful line of that functionality got lost... --- webadmin/admin.js | 3 ++- webadmin/admin.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webadmin/admin.js b/webadmin/admin.js index 23aa33c..0bb9090 100644 --- a/webadmin/admin.js +++ b/webadmin/admin.js @@ -2034,7 +2034,8 @@ const index = async () => { e.preventDefault(); e.stopPropagation(); dom._kids(cidElem); - await check(recvIDFieldset, client.LookupCid(recvID.value)); + const cid = await check(recvIDFieldset, client.LookupCid(recvID.value)); + dom._kids(cidElem, cid); }, recvIDFieldset = dom.fieldset(dom.label('Received ID', attr.title('The ID in the Received header that was added during incoming delivery.')), ' ', recvID = dom.input(attr.required('')), ' ', dom.submitbutton('Lookup cid', attr.title('Logging about an incoming message includes an attribute "cid", a counter identifying the transaction related to delivery of the message. The ID in the received header is an encrypted cid, which this form decrypts, after which you can look it up in the logging.')), ' ', cidElem = dom.span()))), // todo: routing, globally, per domain and per account dom.br(), dom.h2('Configuration'), dom.div(dom.a('Routes', attr.href('#routes'))), dom.div(dom.a('Webserver', attr.href('#webserver'))), dom.div(dom.a('Files', attr.href('#config'))), dom.div(dom.a('Log levels', attr.href('#loglevels'))), footer); diff --git a/webadmin/admin.ts b/webadmin/admin.ts index c983d63..e682c36 100644 --- a/webadmin/admin.ts +++ b/webadmin/admin.ts @@ -411,7 +411,8 @@ const index = async () => { e.preventDefault() e.stopPropagation() dom._kids(cidElem) - await check(recvIDFieldset, client.LookupCid(recvID.value)) + const cid = await check(recvIDFieldset, client.LookupCid(recvID.value)) + dom._kids(cidElem, cid) }, recvIDFieldset=dom.fieldset( dom.label('Received ID', attr.title('The ID in the Received header that was added during incoming delivery.')), ' ',