From 798c51b4e7c367c252c6f465d1775afc758e6620 Mon Sep 17 00:00:00 2001 From: Mubbshar Anwar <78487564+mubbsharanwar@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:40:10 +0500 Subject: [PATCH] fix: pass extra prop to plugin slot (#1494) passing model as a prop to plugin slot for dynamic model selection SONIC-717 --- src/course-home/outline-tab/OutlineTab.jsx | 5 ++++- .../notifications/NotificationsWidget.tsx | 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 c39d9d45e2..1fbc83012f 100644 --- a/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx +++ b/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx @@ -86,6 +86,7 @@ const NotificationTray = ({ intl }) => { id="notification_tray_slot" pluginProps={{ courseId, + model: 'coursewareMeta', notificationCurrentState: upgradeNotificationCurrentState, setNotificationCurrentState: setUpgradeNotificationCurrentState, }}