From abbdf591345dcec1bf4e0e4ac229bf30fa6c31ef Mon Sep 17 00:00:00 2001 From: mubbsharanwar Date: Thu, 3 Oct 2024 16:57:58 +0500 Subject: [PATCH] fix: pass extra prop to plugin slot passing model as a prop to plugin slot for dynamic model selection SONIC-717 --- src/course-home/outline-tab/OutlineTab.jsx | 5 ++++- .../notifications/NotificationsWidget.jsx | 1 + .../sidebar/sidebars/notifications/NotificationTray.jsx | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/course-home/outline-tab/OutlineTab.jsx b/src/course-home/outline-tab/OutlineTab.jsx index ca26155f82..c0fcfab944 100644 --- a/src/course-home/outline-tab/OutlineTab.jsx +++ b/src/course-home/outline-tab/OutlineTab.jsx @@ -197,7 +197,10 @@ const OutlineTab = ({ intl }) => { { id="notification_widget_slot" pluginProps={{ courseId, + model: 'coursewareMeta', notificationCurrentState: upgradeNotificationCurrentState, setNotificationCurrentState: setUpgradeNotificationCurrentState, toggleSidebar: onToggleSidebar, diff --git a/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx b/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx index de8ec204cb..bd7af3d2d9 100644 --- a/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx +++ b/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx @@ -85,6 +85,7 @@ const NotificationTray = ({ intl }) => { id="notification_tray_slot" pluginProps={{ courseId, + model: 'coursewareMeta', notificationCurrentState: upgradeNotificationCurrentState, setNotificationCurrentState: setUpgradeNotificationCurrentState, }}