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

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new b1b3c85a Add menu item to delete current message
b1b3c85a is described below

commit b1b3c85a7f9daaaf74f7d140ce0214eef7822dee
Author: Sebb <[email protected]>
AuthorDate: Thu Aug 1 13:31:52 2024 +0100

    Add menu item to delete current message
---
 www/secretary/workbench/views/parts.js.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/www/secretary/workbench/views/parts.js.rb 
b/www/secretary/workbench/views/parts.js.rb
index 84717462..8f1c86c2 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -50,6 +50,10 @@ class Parts < Vue
       }
     }
 
+    _ul do
+      _li "\u2716 delete this email", onMousedown: self.delete_message
+    end
+
     # locate corresponding signature file (if any)
     signature = CheckSignature.find(decodeURIComponent(@selected), 
@attachments)
 
@@ -603,6 +607,7 @@ class Parts < Vue
     }
   end
 
+
   # rotate an attachment
   def rotate_attachment(event)
     message = window.parent.location.pathname

Reply via email to