diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-08 16:05:54 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-08 16:05:54 +0200 |
| commit | 0a6a7fb9b49a2180a68f6c96815ebd9b7f6b5ab7 (patch) | |
| tree | 09d112663ca6e6b8255b58fec64522b2b6888c8d /animism-align/frontend/app/views/viewer/nav/viewer.router.js | |
| parent | 064e8652dc4fae7167e3cd34a6fbe6b36e6239d1 (diff) | |
section 2 carousel
Diffstat (limited to 'animism-align/frontend/app/views/viewer/nav/viewer.router.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/nav/viewer.router.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/nav/viewer.router.js b/animism-align/frontend/app/views/viewer/nav/viewer.router.js index 837bd5e..7f18b94 100644 --- a/animism-align/frontend/app/views/viewer/nav/viewer.router.js +++ b/animism-align/frontend/app/views/viewer/nav/viewer.router.js @@ -3,6 +3,7 @@ import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { timestampToSeconds } from 'app/utils' +import { getSection } from 'app/utils/viewer.utils' import actions from 'app/actions' class ViewerRouter extends Component { @@ -21,11 +22,17 @@ class ViewerRouter extends Component { case 'checklist': actions.viewer.showComponent('checklist') break + case 'carousel': + actions.viewer.seekToSection(getSection(1)) + break case 'vitrine': - actions.audio.seek(timestampToSeconds('7:36')) + actions.viewer.seekToSection(getSection(2)) break case 'gallery': - actions.audio.seek(timestampToSeconds('27:36')) + actions.viewer.seekToSection(getSection(3)) + break + case 'video': + actions.viewer.seekToSection(getSection(4)) break case 'end': break |
