openfun / fun-apps

:warning: DEPRECATED :warning:
Other
15 stars 20 forks source link

fix(teaser): don't show video button when video missing #617

Closed sampaccoud closed 6 years ago

sampaccoud commented 6 years ago

The creator of a course can link a teaser in Studio. This saves a youtube url in Mongodb. This behavior was hacked to allow creators to enter dailymotion IDs and rebuild Dailymotion urls from the Youtube url. This backfires when the user does not enter any ID in Studio. This quick fix aims to hide the video button in this case and avoid building a DM url pointing to nothing.