This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 4ff06dfa7aec22893e57a71db95e9356dd474f3a
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Mar 29 21:36:58 2021 +0200

    add confirmation box before removing email
---
 webui/js/source/mgmt.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index be66ea9..521f76c 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -13,6 +13,9 @@ async function POST(url, formdata, state) {
 
 // Deletes (hides) an email from the archives
 async function admin_hide_email() {
+    if (!confirm("Are you sure you wish to remove this email from the 
archives?")) {
+        return
+    }
     formdata = JSON.stringify({
         action: "delete",
         document: admin_current_email

Reply via email to