Skip to content

Commit d3dfbd7

Browse files
authored
Feat: remove the certificate link when it's not avaliable. (#8)
1 parent cb3b30d commit d3dfbd7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tutorindigo/plugin.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,27 @@ def _override_openedx_docker_image(
301301
""",
302302
),
303303
)
304+
PLUGIN_SLOTS.add_item(
305+
(
306+
mfe,
307+
"progress_certificate_status_slot",
308+
"""
309+
{
310+
op: PLUGIN_OPERATIONS.Modify,
311+
widgetId: 'default_contents',
312+
fn: (widget) => {
313+
const { RenderWidget } = widget;
314+
if (RenderWidget.props.id === "notAvailable_certificate_status") {
315+
widget.RenderWidget = <></>;
316+
}
317+
318+
return widget;
319+
},
320+
321+
},
322+
""",
323+
),
324+
)
304325
else:
305326
PLUGIN_SLOTS.add_item(
306327
(

0 commit comments

Comments
 (0)