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

@@ -116,6 +116,7 @@ export function normalizeOutlineBlocks(courseId, blocks) {
id: courseId,
title: block.display_name,
sectionIds: block.children || [],
hasScheduledContent: block.has_scheduled_content,
};
break;
@@ -323,6 +324,7 @@ export async function getOutlineTabData(courseId) {
const datesWidget = camelCaseObject(data.dates_widget);
const enrollAlert = camelCaseObject(data.enroll_alert);
const handoutsHtml = data.handouts_html;
const hasScheduledContent = data.has_scheduled_content;
const hasEnded = data.has_ended;
const offer = camelCaseObject(data.offer);
const resumeCourse = camelCaseObject(data.resume_course);
@@ -341,6 +343,7 @@ export async function getOutlineTabData(courseId) {
datesWidget,
enrollAlert,
handoutsHtml,
hasScheduledContent,
hasEnded,
offer,
resumeCourse,