Skip to content

Commit 798c51b

Browse files
fix: pass extra prop to plugin slot (#1494)
passing model as a prop to plugin slot for dynamic model selection SONIC-717
1 parent 9a83d67 commit 798c51b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/course-home/outline-tab/OutlineTab.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ const OutlineTab = ({ intl }) => {
197197
<CourseTools />
198198
<PluginSlot
199199
id="outline_tab_notifications_slot"
200-
pluginProps={{ courseId }}
200+
pluginProps={{
201+
courseId,
202+
model: 'outline',
203+
}}
201204
>
202205
<UpgradeNotification
203206
offer={offer}

src/courseware/course/new-sidebar/sidebars/discussions-notifications/notifications/NotificationsWidget.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const NotificationsWidget = () => {
7878
id="notification_widget_slot"
7979
pluginProps={{
8080
courseId,
81+
model: 'coursewareMeta',
8182
notificationCurrentState: upgradeNotificationCurrentState,
8283
setNotificationCurrentState: setUpgradeNotificationCurrentState,
8384
toggleSidebar: onToggleSidebar,

src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const NotificationTray = ({ intl }) => {
8686
id="notification_tray_slot"
8787
pluginProps={{
8888
courseId,
89+
model: 'coursewareMeta',
8990
notificationCurrentState: upgradeNotificationCurrentState,
9091
setNotificationCurrentState: setUpgradeNotificationCurrentState,
9192
}}

0 commit comments

Comments
 (0)