diff --git a/src/courseware/course/sequence/Unit/ContentIFrame.jsx b/src/courseware/course/sequence/Unit/ContentIFrame.jsx index 6d21c129b0..54c4d6620f 100644 --- a/src/courseware/course/sequence/Unit/ContentIFrame.jsx +++ b/src/courseware/course/sequence/Unit/ContentIFrame.jsx @@ -4,6 +4,7 @@ import React from 'react'; import { ErrorPage } from '@edx/frontend-platform/react'; import { StrictDict } from '@edx/react-unit-test-utils'; import { ModalDialog, Modal } from '@openedx/paragon'; +import { PluginSlot } from '@openedx/frontend-plugin-framework'; import PageLoading from '@src/generic/PageLoading'; import * as hooks from './hooks'; @@ -35,6 +36,7 @@ const ContentIFrame = ({ elementId, onLoaded, title, + courseId, }) => { const { handleIFrameLoad, @@ -82,7 +84,17 @@ const ContentIFrame = ({ return ( <> {(shouldShowContent && !hasLoaded) && ( - showError ? : + showError ? : ( + , + courseId, + }} + > + + + ) )} {shouldShowContent && (
@@ -124,11 +136,13 @@ ContentIFrame.propTypes = { elementId: PropTypes.string.isRequired, onLoaded: PropTypes.func, title: PropTypes.node.isRequired, + courseId: PropTypes.string, }; ContentIFrame.defaultProps = { iframeUrl: null, onLoaded: () => ({}), + courseId: '', }; export default ContentIFrame; diff --git a/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap b/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap index 63b0fb5a11..c82b9fa487 100644 --- a/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap +++ b/src/courseware/course/sequence/Unit/__snapshots__/index.test.jsx.snap @@ -49,6 +49,7 @@ exports[`Unit component output snapshot: not bookmarked, do not show content 1`] id="test-props-id" />
);