Skip to content

Commit

Permalink
fixup! feat: Add slots for video and file upload components and alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Dec 16, 2024
1 parent 11fe8ba commit 4e9d9df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/files-and-videos/files-page/FilesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ const FilesPage = ({
updatingStatus: updateAssetStatus,
errors: errorMessages,
} = useSelector(state => state.assets);

useEffect(() => {
dispatch(fetchAssets(courseId));
}, [courseId]);

const handleErrorReset = (error) => dispatch(resetErrors(error));

if (loadingStatus === RequestStatus.DENIED) {
return (
<div data-testid="under-construction-placeholder" className="row justify-contnt-center m-6">
Expand Down
2 changes: 1 addition & 1 deletion src/plugin-slots/CourseOutlinePageAlertsSlot/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PluginSlot } from '@openedx/frontend-plugin-framework';
import React from 'react';

const CourseOutlinePageAlertsSlot = () => <PluginSlot id="course_outline_page_alerts_slots" />;
const CourseOutlinePageAlertsSlot = () => <PluginSlot id="course_outline_page_alerts_slot" />;
export default CourseOutlinePageAlertsSlot;

0 comments on commit 4e9d9df

Please sign in to comment.