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 29fe09c fix cc
29fe09c is described below
commit 29fe09ceb19e41c2a2a49395789da5a3489237dc
Author: Sam Ruby <[email protected]>
AuthorDate: Sat May 12 19:07:37 2018 -0400
fix cc
---
www/board/agenda/views/buttons/email.js.rb | 3 +--
www/board/agenda/views/models/agenda.js.rb | 9 +++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/buttons/email.js.rb
b/www/board/agenda/views/buttons/email.js.rb
index 6181736..40b9d3f 100644
--- a/www/board/agenda/views/buttons/email.js.rb
+++ b/www/board/agenda/views/buttons/email.js.rb
@@ -26,8 +26,7 @@ class Email < Vue
mail_list = @@item.mail_list
mail_list = "private@#{mail_list}.apache.org" unless mail_list.include? '@'
- destination = "mailto:#{@@item.chair_email}" +
- "?cc=#{mail_list}.apache.org,[email protected]"
+ destination = "mailto:#{@@item.chair_email}?cc=#{mail_list},#{@@item.cc}"
if @@item.missing
subject = "Missing #{@@item.title} Board Report"
diff --git a/www/board/agenda/views/models/agenda.js.rb
b/www/board/agenda/views/models/agenda.js.rb
index 5679a61..7feb598 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -557,6 +557,15 @@ class Agenda
'reviewed'
end
end
+
+ # who to copy on emails
+ def cc
+ if @to == 'president'
+ '[email protected]'
+ else
+ '[email protected]'
+ end
+ end
end
Events.subscribe :agenda do |message|
--
To stop receiving notification emails like this one, please contact
[email protected].