Skip to content

Commit

Permalink
fix: [RGOeX-26199] Check if more than 1 course mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Inferato committed Nov 9, 2023
1 parent 0720b2f commit b2d39f2
Showing 1 changed file with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,24 @@ export default function BulkEmailRecipient(props) {
description="A selectable choice from a list of potential email recipients"
/>
</Form.Checkbox>
<Form.Checkbox
key="track:verified"
value="track:verified"
disabled={selectedGroups.find((group) => group === DEFAULT_GROUPS.ALL_LEARNERS)}
className="col col-lg-4 col-sm-6 col-12"
>
<FormattedMessage
id="bulk.email.form.recipients.verified"
defaultMessage="Learners in the verified certificate track"
description="A selectable choice from a list of potential email recipients"
/>
</Form.Checkbox>
{
// additional modes
courseModes
&& courseModes.length > 1
&& courseModes.map((courseMode) => (
<Form.Checkbox
key="track:{courseMode.slug}"
value={`track:${courseMode.slug}`}
disabled={selectedGroups.find((group) => group === DEFAULT_GROUPS.ALL_LEARNERS)}
className="col col-lg-4 col-sm-6 col-12"
>
<FormattedMessage
id={`bulk.email.form.cohort.${courseMode.slug}`}
defaultMessage={`Learners in the ${courseMode.name} Track`}
/>
</Form.Checkbox>
))
}
{
// additional cohorts
additionalCohorts
Expand Down

0 comments on commit b2d39f2

Please sign in to comment.