Skip to content

Commit 8de5be2

Browse files
Feat: Add MultiSiteBannerWidget to account MFE footer plugin slot
1 parent 64ceb51 commit 8de5be2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tutorindigo/plugin.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _override_openedx_docker_image(
151151
(
152152
f"mfe-env-config-runtime-definitions-{mfe}",
153153
"""
154-
const { HeaderWidget, FooterWidget } = require("@anas_hameed/edly-saas-widget");
154+
const { HeaderWidget, FooterWidget, MultiSiteBannerWidget } = require("@anas_hameed/edly-saas-widget");
155155
""",
156156
),
157157
]
@@ -237,6 +237,17 @@ def _override_openedx_docker_image(
237237
},
238238
"""
239239

240+
ACCOUNT_FOOTER_WIDGET = FOOTER_WIDGET + """
241+
{
242+
op: PLUGIN_OPERATIONS.Insert,
243+
widget: {
244+
id: 'multi_site_banner_injector',
245+
type: DIRECT_PLUGIN,
246+
RenderWidget: MultiSiteBannerWidget,
247+
},
248+
},
249+
"""
250+
240251
HEADER_WIDGET = """
241252
{
242253
op: PLUGIN_OPERATIONS.Hide,
@@ -261,6 +272,9 @@ def _override_openedx_docker_image(
261272
"authoring": {
262273
"studio_footer_slot": FOOTER_WIDGET
263274
},
275+
"account": {
276+
"footer_slot": ACCOUNT_FOOTER_WIDGET,
277+
},
264278
}
265279

266280
DEFAULT_CONFIG = {

0 commit comments

Comments
 (0)