-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: show multiView enabled xBlocks on mobile only #158
fix: show multiView enabled xBlocks on mobile only #158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits only.
} | ||
|
||
data class StudentViewData( | ||
val onlyOnWeb: Boolean, | ||
val duration: Any, | ||
val transcripts: HashMap<String, String>?, | ||
val encodedVideos: EncodedVideos?, | ||
val topicId: String, | ||
val topicId: String?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this as we are already setting it to blank in the data layer.
val transcripts = block.studentViewData!!.transcripts | ||
return when { | ||
(block.isVideoBlock && block.studentViewData?.encodedVideos != null) -> { | ||
val encodedVideos = block.studentViewData?.encodedVideos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also revert changes in this block.
3569be8
to
1393a28
Compare
044da26
to
049ec14
Compare
- Update conditions for components to show only enabled multiview xBlocks on mobile fix: LEARNER-9699
- Add checks to show appropriate view in case studentViewData is NullOrEmpty
Description
studentViewData
for Video and Discussions blockfix: #85 / LEARNER-9699