feat: [FC-0070] rendering library content in unit page (#1475)
The enables opening a Library Content page within the new Studio unit page. This page displays the xBlocks from the specified library and provides basic configuration options for the library.
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from '@openedx/paragon/icons';
|
||||
|
||||
import ConfigureModal from '../../generic/configure-modal/ConfigureModal';
|
||||
import { COURSE_BLOCK_NAMES } from '../../constants';
|
||||
import { getCourseUnitData } from '../data/selectors';
|
||||
import { updateQueryPendingStatus } from '../data/slice';
|
||||
import { messageTypes } from '../constants';
|
||||
@@ -94,6 +95,9 @@ const HeaderTitle = ({
|
||||
onConfigureSubmit={onConfigureSubmit}
|
||||
currentItemData={currentItemData}
|
||||
isSelfPaced={false}
|
||||
isXBlockComponent={
|
||||
[COURSE_BLOCK_NAMES.libraryContent.id, COURSE_BLOCK_NAMES.component.id].includes(currentItemData.category)
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{getVisibilityMessage()}
|
||||
|
||||
@@ -116,7 +116,7 @@ describe('<HeaderTitle />', () => {
|
||||
...courseUnitIndexMock,
|
||||
user_partition_info: {
|
||||
...courseUnitIndexMock.user_partition_info,
|
||||
selected_partition_index: '1',
|
||||
selected_partition_index: 1,
|
||||
selected_groups_label: 'Visibility group 1',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user