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:
Ihor Romaniuk
2025-01-16 18:06:48 +01:00
committed by GitHub
parent 98fbcff842
commit 619ab9a267
33 changed files with 482 additions and 187 deletions

View File

@@ -99,6 +99,7 @@ export async function createCourseXblock({
* @param {string} type - The action type (e.g., PUBLISH_TYPES.discardChanges).
* @param {boolean} isVisible - The visibility status for students.
* @param {boolean} groupAccess - Access group key set.
* @param {boolean} isDiscussionEnabled - Indicates whether the discussion feature is enabled.
* @returns {Promise<any>} A promise that resolves with the response data.
*/
export async function handleCourseUnitVisibilityAndData(unitId, type, isVisible, groupAccess, isDiscussionEnabled) {