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:
@@ -81,6 +81,10 @@ class CourseMetadata(object):
|
|||||||
if not settings.FEATURES.get('ENABLE_VIDEO_UPLOAD_PIPELINE'):
|
if not settings.FEATURES.get('ENABLE_VIDEO_UPLOAD_PIPELINE'):
|
||||||
filtered_list.append('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.
|
# Do not show social sharing url field if the feature is disabled.
|
||||||
if (not hasattr(settings, 'SOCIAL_SHARING_SETTINGS') or
|
if (not hasattr(settings, 'SOCIAL_SHARING_SETTINGS') or
|
||||||
not getattr(settings, 'SOCIAL_SHARING_SETTINGS', {}).get("CUSTOM_COURSE_URLS")):
|
not getattr(settings, 'SOCIAL_SHARING_SETTINGS', {}).get("CUSTOM_COURSE_URLS")):
|
||||||
|
|||||||
@@ -178,7 +178,6 @@ class AdvancedSettingsPage(CoursePage):
|
|||||||
'course_image',
|
'course_image',
|
||||||
'banner_image',
|
'banner_image',
|
||||||
'video_thumbnail_image',
|
'video_thumbnail_image',
|
||||||
'video_auto_advance',
|
|
||||||
'cosmetic_display_price',
|
'cosmetic_display_price',
|
||||||
'advertised_start',
|
'advertised_start',
|
||||||
'announcement',
|
'announcement',
|
||||||
|
|||||||
Reference in New Issue
Block a user