From 5e0ae6bf0cec8586ae3344dca23bfacd13310cc5 Mon Sep 17 00:00:00 2001 From: Thomas Tracy Date: Mon, 2 Nov 2020 13:17:07 -0500 Subject: [PATCH] Remove modal flag from code (#25482) --- themes/edx.org/lms/templates/dashboard.html | 35 +-------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 485da327d9..f0f40fd117 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -156,8 +156,6 @@ from student.models import CourseEnrollment from openedx.core.djangoapps.enrollments.api import serialize_enrollments serialized_course_enrollments = serialize_enrollments(course_enrollments) demographics_enabled = getattr(settings, 'ENABLE_DEMOGRAPHICS_COLLECTION', False) - demographics_modal_enabled = getattr(settings, 'ENABLE_DEMOGRAPHICS_MODAL', False) - show_user_demographics_fields = show_user_demographics( user, enrollments=serialized_course_enrollments, @@ -168,41 +166,10 @@ from student.models import CourseEnrollment show_user_demographics_fields and show_call_to_action_for_user(user) ) - display_demographics_modal = ( - demographics_enabled and - demographics_modal_enabled and - show_user_demographics_fields - ) account_mfe_url = getattr(settings, 'ACCOUNT_MICROFRONTEND_URL', '') or '' bannerLogoPath = staticfiles_storage.url('edx.org/images/quote_prompt.png') %> - % if display_demographics_banner and not display_demographics_modal: - - - - % endif - % if display_demographics_modal and display_demographics_banner: + % if display_demographics_banner: ${static.renderReact( component="DemographicsCollectionBanner", id="dashboard-demographics-collection-banner",