diff --git a/frontend/index.html b/frontend/index.html index b2ed1d0..d18c9b4 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9955,6 +9955,7 @@ const [loading, setLoading] = useState(true); const [error, setError] = useState(''); const [busy, setBusy] = useState(''); + const [oneEmail, setOneEmail] = useState(() => user?.email || ''); const load = useCallback(async () => { let s; @@ -9991,12 +9992,14 @@ return () => { cancelled = true; }; }, [load]); - const runAction = async (key, endpoint, successMsg, confirmMsg) => { + const runAction = async (key, endpoint, successMsg, confirmMsg, body) => { if (busy) return; if (confirmMsg && !window.confirm(confirmMsg)) return; try { setBusy(key); - const res = await api(endpoint, { method: 'POST' }, token); + const opts = { method: 'POST' }; + if (body) opts.body = JSON.stringify(body); + const res = await api(endpoint, opts, token); onShowToast(typeof successMsg === 'function' ? successMsg(res) : successMsg, 'success'); } catch (err) { onShowToast(getErrorMessage(err, 'Action failed'), 'error'); @@ -10060,12 +10063,35 @@ {isAdmin && (
Actions
-
+
+ Test with a single mailbox first: +
+
+ setOneEmail(e.target.value)} + style={{ maxWidth: '260px' }} + /> +
+
+