File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ - [ Enhancement] Add support to override indigo footer using plugin slot. (by @Faraz32123 )
2+ Related conversation: https://github.com/overhangio/tutor-indigo/pull/181#issuecomment-3834617842.
Original file line number Diff line number Diff line change 1+
2+ if (config.pluginSlots && config.pluginSlots['org.openedx.frontend.layout.footer.v1']) {
3+ const footerPluginsToInsert =
4+ config.pluginSlots['org.openedx.frontend.layout.footer.v1'].plugins.filter(plugin => plugin.op === 'insert');
5+
6+ if (footerPluginsToInsert.length > 2) {
7+ config.pluginSlots['org.openedx.frontend.layout.footer.v1'].plugins =
8+ config.pluginSlots['org.openedx.frontend.layout.footer.v1'].plugins.filter(plugin => {
9+ if (plugin.op === 'insert') {
10+ const widgetId = plugin.widget?.id;
11+ return widgetId !== 'indigo_footer';
12+ }
13+ return true;
14+ });
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ def _override_openedx_docker_image(
201201 {
202202 op: PLUGIN_OPERATIONS.Insert,
203203 widget: {
204- id: 'custom_footer ',
204+ id: 'indigo_footer ',
205205 type: DIRECT_PLUGIN,
206206 priority: 1,
207207 RenderWidget: IndigoFooter,
You can’t perform that action at this time.
0 commit comments