Skip to content

Commit cd8b22b

Browse files
Muhammad Faraz  MaqsoodMuhammad Faraz  Maqsood
authored andcommitted
fix: CI & default variable name
1 parent c729a78 commit cd8b22b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

tutorindigo/patches/mfe-env-config-runtime-definitions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const ThemedLogo = () => {
1111
background: no-repeat center/contain url("${BASE_URL}/static/indigo/images/logo.png");
1212
}
1313

14-
{% if ENABLE_DARK_THEME_LOGO %}
14+
{% if INDIGO_ENABLE_DARK_THEME_LOGO %}
1515
body.indigo-dark-theme .themed-logo {
1616
background-image: url("${BASE_URL}/static/indigo/images/logo-white.png");
1717
}

tutorindigo/plugin.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import importlib_resources
88
from tutor import hooks
99
from tutor.__about__ import __version_suffix__
10-
from tutormfe.hooks import PLUGIN_SLOTS, MFE_APPS
10+
from tutormfe.hooks import MFE_APPS, MFE_ATTRS_TYPE, PLUGIN_SLOTS
1111

1212
from .__about__ import __version__
1313

@@ -298,8 +298,11 @@ def _override_openedx_docker_image(
298298
]
299299
)
300300

301-
@MFE_APPS.add()
302-
def _add_themed_logo(mfes):
301+
302+
@MFE_APPS.add() # type: ignore
303+
def _add_themed_logo(
304+
mfes: dict[str, MFE_ATTRS_TYPE],
305+
) -> dict[str, MFE_ATTRS_TYPE]:
303306
for mfe in mfes:
304307
PLUGIN_SLOTS.add_item(
305308
(

tutorindigo/templates/indigo/lms/static/sass/extra/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ header.global-header {
289289
}
290290

291291
body.indigo-dark-theme {
292-
{% if ENABLE_DARK_THEME_LOGO %}
292+
{% if INDIGO_ENABLE_DARK_THEME_LOGO %}
293293
.logo {
294294
background-image: url("/static/indigo/images/logo-white.png");
295295
}

0 commit comments

Comments
 (0)