generated from openedx/frontend-template-application
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Course mode is used to show the correct bulk email options
- Loading branch information
Showing
6 changed files
with
79 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...nts/bulk-email-tool/bulk-email-form/data/__factories__/bulkEmailFormCourseMode.factory.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Factory } from 'rosie'; // eslint-disable-line import/no-extraneous-dependencies | ||
|
||
const courseModeFactory = () => { | ||
const AuditModeFactory = Factory.define('AuditModeFactory') | ||
.attr('slug', 'audit') | ||
.attr('name', 'Audit'); | ||
|
||
const VerifiedModeFactory = Factory.define('VerifiedModeFactory') | ||
.attr('slug', 'verified') | ||
.attr('name', 'Verified Certificate'); | ||
|
||
return [ | ||
AuditModeFactory.build(), | ||
VerifiedModeFactory.build(), | ||
]; | ||
}; | ||
|
||
export default courseModeFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters