Merge pull request #17408 from edx/LEARNER-3926-portfolio-project-test-upsell
LEARNER-3926 Portfolio Project Test Upsell Modal
This commit is contained in:
@@ -16,6 +16,7 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_str
|
||||
from openedx.core.djangolib.markup import HTML
|
||||
from openedx.features.course_experience import UNIFIED_COURSE_TAB_FLAG, SHOW_REVIEWS_TOOL_FLAG
|
||||
from openedx.features.learner_analytics import ENABLE_DASHBOARD_TAB
|
||||
from openedx.features.portfolio_project import INCLUDE_PORTFOLIO_UPSELL_MODAL
|
||||
%>
|
||||
|
||||
<%block name="header_extras">
|
||||
@@ -33,6 +34,14 @@ from openedx.features.learner_analytics import ENABLE_DASHBOARD_TAB
|
||||
)}
|
||||
% endif
|
||||
|
||||
% if INCLUDE_PORTFOLIO_UPSELL_MODAL.is_enabled():
|
||||
${static.renderReact(
|
||||
component="PortfolioExperimentUpsellModal",
|
||||
id="portfolio-experiment-upsell-modal",
|
||||
props={}
|
||||
)}
|
||||
% endif
|
||||
|
||||
<header class="page-header has-secondary">
|
||||
<div class="page-header-main">
|
||||
<nav aria-label="${_('Course Outline')}" class="sr-is-focusable" tabindex="-1">
|
||||
|
||||
@@ -9,6 +9,10 @@ from openedx.core.djangoapps.waffle_utils import (
|
||||
WAFFLE_FLAG_NAMESPACE = WaffleFlagNamespace(name='learner_analytics')
|
||||
|
||||
# Simple safety valve in case the modal breaks DOM.
|
||||
# Used in the Learner Analytics and Enhanced Support tests
|
||||
# Please do not turn off this flag until all tests have been resolved
|
||||
# https://openedx.atlassian.net/browse/LEARNER-3377
|
||||
# https://openedx.atlassian.net/browse/LEARNER-3514
|
||||
INCLUDE_UPSELL_MODAL = WaffleFlag(WAFFLE_FLAG_NAMESPACE, 'include_upsell_modal')
|
||||
|
||||
# Enables the learner analytics page for different courses via waffle course overrides.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
"""
|
||||
Portfolio project helpers and settings
|
||||
"""
|
||||
from openedx.core.djangoapps.waffle_utils import (
|
||||
CourseWaffleFlag, WaffleFlag, WaffleFlagNamespace
|
||||
)
|
||||
|
||||
# Namespace for portfolio project waffle flags.
|
||||
WAFFLE_FLAG_NAMESPACE = WaffleFlagNamespace(name='portfolio_project')
|
||||
|
||||
|
||||
# https://openedx.atlassian.net/browse/LEARNER-3926
|
||||
INCLUDE_PORTFOLIO_UPSELL_MODAL = WaffleFlag(WAFFLE_FLAG_NAMESPACE, 'include_upsell_modal')
|
||||
|
||||
Reference in New Issue
Block a user