Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/actions/speaker-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,7 @@ export const exportSummitSpeakers =
* @param testRecipient
* @param excerptRecipient
* @param shouldSendCopy2Submitter
* @param shouldResendSpeakers
* @param source
* @param promoCodeStrategy
* @param promocodeSpecification
Expand All @@ -1153,6 +1154,7 @@ export const sendSpeakerEmails =
testRecipient = "",
excerptRecipient = "",
shouldSendCopy2Submitter = false,
shouldResendSpeakers = false,
// eslint-disable-next-line no-unused-vars
source = null,
promoCodeStrategy = null,
Expand All @@ -1172,7 +1174,8 @@ export const sendSpeakerEmails =

const payload = {
email_flow_event: currentFlowEvent,
should_send_copy_2_submitter: shouldSendCopy2Submitter
should_send_copy_2_submitter: shouldSendCopy2Submitter,
should_resend: shouldResendSpeakers
};

if (!selectedAll && selectedItems.length > 0) {
Expand Down
3 changes: 3 additions & 0 deletions src/actions/submitter-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export const exportSummitSubmitters =
* @param testRecipient
* @param excerptRecipient
* @param shouldSendCopy2Submitter
* @param shouldResendSpeakers
* @param source
* @param promoCodeStrategy
* @param promocodeSpecification
Expand All @@ -275,6 +276,8 @@ export const sendSubmitterEmails =
excerptRecipient = "",
// not used only left to keep the signature
shouldSendCopy2Submitter = false,
// not used only left to keep the signature
shouldResendSpeakers = false,
source = null,
promoCodeStrategy = null,
promocodeSpecification = null
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@
"resend_done": "Emails sent successfully.",
"send_emails_title": "You are about to send an EMAIL BLAST to selected speakers !",
"should_send_copy_2_submitter": "Also send to submitter?",
"should_resend_speakers": "Resend to already-sent speakers?",
"allows_to_reassign": "Allow to reassign?",
"items_qty": "Selected {qty} Speakers | {activitiesQty} Activities",
"placeholders": {
Expand Down
73 changes: 51 additions & 22 deletions src/pages/summit_speakers/summit-speakers-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ class SummitSpeakersListPage extends React.Component {
const excerptRecipient = this.ingestEmailRef.value;
const shouldSendCopy2Submitter =
isSpeakerMode && this.shouldSendCopy2SubmitterRef.checked;
const shouldResendSpeakers =
isSpeakerMode && this.shouldResendSpeakersRef.checked;
const {
term,
selectionPlanFilter,
Expand Down Expand Up @@ -567,6 +569,7 @@ class SummitSpeakersListPage extends React.Component {
testRecipient,
excerptRecipient,
shouldSendCopy2Submitter,
shouldResendSpeakers,
source,
promoCodeStrategy,
currentPromocodeSpecification.entity
Expand Down Expand Up @@ -1178,29 +1181,55 @@ class SummitSpeakersListPage extends React.Component {
/>
</div>
{this.state.source === sources.speakers && (
<div
className="col-md-12 ticket-ingest-email-wrapper"
style={{ paddingTop: "3px" }}
>
<div className="form-check abc-checkbox">
<input
id="should_send_copy_2_submitter"
className="form-check-input"
type="checkbox"
ref={(node) => {
this.shouldSendCopy2SubmitterRef = node;
}}
/>
<label
className="form-check-label"
htmlFor="should_send_copy_2_submitter"
>
{T.translate(
"summit_speakers_list.should_send_copy_2_submitter"
)}
</label>
<>
<div
className="col-md-12 ticket-ingest-email-wrapper"
style={{ paddingTop: "3px" }}
>
<div className="form-check abc-checkbox">
<input
id="should_send_copy_2_submitter"
className="form-check-input"
type="checkbox"
ref={(node) => {
this.shouldSendCopy2SubmitterRef = node;
}}
/>
<label
className="form-check-label"
htmlFor="should_send_copy_2_submitter"
>
{T.translate(
"summit_speakers_list.should_send_copy_2_submitter"
)}
</label>
</div>
</div>
</div>
<div
className="col-md-12 ticket-ingest-email-wrapper"
style={{ paddingTop: "3px" }}
>
<div className="form-check abc-checkbox">
<input
id="should_resend_speakers"
className="form-check-input"
type="checkbox"
ref={(node) => {
this.shouldResendSpeakersRef = node;
}}
defaultChecked
/>
<label
className="form-check-label"
htmlFor="should_resend_speakers"
>
{T.translate(
"summit_speakers_list.should_resend_speakers"
)}
</label>
</div>
</div>
</>
)}
</div>
</Modal.Body>
Expand Down
Loading