You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/12 22:36:16 UTC

[whimsy] branch master updated: send text of report if there are no comments yet

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

rubys 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 875d9db  send text of report if there are no comments yet
875d9db is described below

commit 875d9dbb19f276c0173cf7667bd1ccad73fafc80
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat May 12 18:36:02 2018 -0400

    send text of report if there are no comments yet
---
 www/board/agenda/views/buttons/email.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/buttons/email.js.rb b/www/board/agenda/views/buttons/email.js.rb
index 6a6bebc..6181736 100644
--- a/www/board/agenda/views/buttons/email.js.rb
+++ b/www/board/agenda/views/buttons/email.js.rb
@@ -53,7 +53,7 @@ class Email < Vue
       body = body.strip().gsub(/#{indent}/, "\n").gsub(/(\S)\n(\S)/, "$1 $2")
     else
       subject = "#{@@item.title} Board Report"
-      body = @@item.comments
+      body = @@item.comments.join("\n\n") || @@item.text
     end
 
     window.location = destination +

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.