summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-21 16:44:07 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-21 16:44:07 +0100
commit49bf241d0fa275053424db3458a057de7b9d418f (patch)
tree8df9a9c5748c2bece60de2403d1cddbe0cd56b56 /animism-align/frontend/app/views/viewer/checklist/checklist.content.js
parentee04ccd494b8a2dd1e535168979596c9907cd0ab (diff)
messaging if rest of chapters are disabled. grayscale all disabled media
Diffstat (limited to 'animism-align/frontend/app/views/viewer/checklist/checklist.content.js')
-rw-r--r--animism-align/frontend/app/views/viewer/checklist/checklist.content.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
index ba44a1b..f756b36 100644
--- a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
+++ b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
@@ -9,6 +9,7 @@ import { PlayIcon } from '../nav/viewer.icons'
class ChecklistContent extends Component {
handleMediaSelection(section, mediaItem, i) {
+ if (this.props.onlyEnableFirstSection) return
// when clicking a work in the checklist,
// if it's the first work in the section, seek to the beginning of the section
// OTHERWISE seek to the work itself. might have to add this as another option on sections
@@ -83,6 +84,7 @@ class ChecklistContent extends Component {
const mapStateToProps = state => ({
sections: state.viewer.sections,
+ onlyEnableFirstSection: state.viewer.onlyEnableFirstSection,
})
export default connect(mapStateToProps)(ChecklistContent)