fix: Pull lms_base_url out of vertical data from the blocks API (#46)

TNL-7170

lms_base_url becomes lmsBaseUrl in the app and is then used by the InstructorToolbar to link the user back to the LMS.  If it isn’t present, the toolbar hides itself.  This puts it back.
This commit is contained in:
David Joy
2020-04-09 11:26:02 -04:00
committed by GitHub
parent a10e6c2826
commit e2399e30d4
2 changed files with 4 additions and 3 deletions

View File

@@ -64,9 +64,9 @@ function Course({
courseTitle={title}
/>
{isStaff && (
<InstructorToolbar
unitId={unitId}
/>
<InstructorToolbar
unitId={unitId}
/>
)}
<CourseTabsNavigation tabs={tabs} activeTabSlug="courseware" />
<div className="container-fluid">

View File

@@ -65,6 +65,7 @@ function normalizeBlocks(courseId, blocks) {
models.units[block.id] = {
id: block.id,
title: block.display_name,
lmsWebUrl: block.lms_web_url,
};
break;
default: