Add setting to disable email notifications of comments
This commit is contained in:
parent
9d4af0dcd3
commit
18433a6776
5 changed files with 18 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ module Admin
|
|||
:send_on_accepted, :send_on_rejected, :send_on_confirmed_without_registration,
|
||||
:send_on_submitted_proposal,
|
||||
:submitted_proposal_subject, :submitted_proposal_body,
|
||||
:send_on_event_comment,
|
||||
:registration_subject, :accepted_subject, :rejected_subject, :confirmed_without_registration_subject,
|
||||
:registration_body, :accepted_body, :rejected_body, :confirmed_without_registration_body,
|
||||
:send_on_conference_dates_updated, :conference_dates_updated_subject, :conference_dates_updated_body,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,13 @@ class Comment < ApplicationRecord
|
|||
|
||||
private
|
||||
|
||||
def conference
|
||||
commentable.program.conference
|
||||
end
|
||||
|
||||
def send_notification
|
||||
return unless conference.email_settings.send_on_event_comment?
|
||||
|
||||
EventCommentMailJob.perform_later(self)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -35,6 +35,10 @@
|
|||
%a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'registration_help' } Show Help
|
||||
= render partial: 'help', locals: { id: 'registration_help', show_event_variables: false }
|
||||
#proposal.tab-pane{ role: 'tabpanel' }
|
||||
.checkbox
|
||||
%label
|
||||
= f.check_box :send_on_event_comment
|
||||
Send an email to all organizers and CfP team members when a comment is added?
|
||||
.checkbox
|
||||
%label
|
||||
= f.check_box :send_on_submitted_proposal, data: { name: 'email_settings_proposal_submited_subject'}, class: 'send_on_radio'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue