Merge pull request #17019 from open-craft/jill/hide-auto-advance-if-disabled

Hides Video Auto Advance from Advanced Settings if disabled
This commit is contained in:
M. Rehan
2017-12-28 15:34:03 +05:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -81,6 +81,10 @@ class CourseMetadata(object):
if not settings.FEATURES.get('ENABLE_VIDEO_UPLOAD_PIPELINE'):
filtered_list.append('video_upload_pipeline')
# Do not show video auto advance if the feature is disabled
if not settings.FEATURES.get('ENABLE_AUTOADVANCE_VIDEOS'):
filtered_list.append('video_auto_advance')
# Do not show social sharing url field if the feature is disabled.
if (not hasattr(settings, 'SOCIAL_SHARING_SETTINGS') or
not getattr(settings, 'SOCIAL_SHARING_SETTINGS', {}).get("CUSTOM_COURSE_URLS")):

View File

@@ -178,7 +178,6 @@ class AdvancedSettingsPage(CoursePage):
'course_image',
'banner_image',
'video_thumbnail_image',
'video_auto_advance',
'cosmetic_display_price',
'advertised_start',
'announcement',