feat: Add Scheduled content alert

Adds a new alert to the outline page that informs the learner of content
coming soon to the course.
This commit is contained in:
Thomas Tracy
2021-07-01 15:27:21 -04:00
committed by Albert (AJ) St. Aubin
parent d2573a16b1
commit 3ef4daecce
10 changed files with 142 additions and 3 deletions

View File

@@ -124,7 +124,12 @@ export function buildMinimalCourseBlocks(courseId, title, options = {}) {
)];
const courseBlock = options.courseBlock || Factory.build(
'block',
{ type: 'course', display_name: title, children: sectionBlocks.map(block => block.id) },
{
type: 'course',
display_name: title,
has_scheduled_content: options.hasScheduledContent || false,
children: sectionBlocks.map(block => block.id),
},
{ courseId },
);
return {