From ac03ba9a645066acfda0449a879034531bb6cee3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 10 Oct 2020 01:41:04 +0200 Subject: moving checklist section to credits thingie --- animism-align/frontend/app/views/viewer/nav/nav.parent.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/nav/nav.parent.js') diff --git a/animism-align/frontend/app/views/viewer/nav/nav.parent.js b/animism-align/frontend/app/views/viewer/nav/nav.parent.js index 80340c8..97919ce 100644 --- a/animism-align/frontend/app/views/viewer/nav/nav.parent.js +++ b/animism-align/frontend/app/views/viewer/nav/nav.parent.js @@ -42,10 +42,8 @@ class NavParent extends Component { const { viewer } = this.props if (viewer.nextSection) { actions.viewer.seekToSection(viewer.nextSection) - } else if (viewer.credits) { - actions.viewer.seekToBeginning() } else { - actions.viewer.showCredits() + actions.viewer.seekToBeginning() } } render() { @@ -53,7 +51,7 @@ class NavParent extends Component { let containerClassName = "viewer-nav " + viewer.navStyle let navClassName = 'nav-row main-nav' if (this.state.hoveringNav || !started) containerClassName += ' hovering-nav' - if ((this.state.hoveringNext || viewer.atEndOfSection) && !viewer.nav && !viewer.credits && viewer.nextSection) containerClassName += ' hovering-next' + if ((this.state.hoveringNext || viewer.atEndOfSection) && !viewer.nav && viewer.nextSection) containerClassName += ' hovering-next' return (
@@ -80,9 +78,9 @@ class NavParent extends Component { onMouseEnter={this.handleMouseEnterNext} onClick={this.goToNextSection} > - {viewer.credits - ? {'Replay Episode 1. Animist Origins & Export Projections'} - : "Next" + {viewer.nextSection + ? "Next" + : {'Replay Episode 1. Animist Origins & Export Projections'} } -- cgit v1.2.3-70-g09d2