Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Enable first step back arrow to access the startup modal

ZachTRiceb51096749a7c
diff --git a/web/css/tour.css b/web/css/tour.css
index 4272a7dfb..e87a13844 100644
--- a/web/css/tour.css
+++ b/web/css/tour.css
@@ -795,4 +795,3 @@
display: block;
}
}
-
diff --git a/web/js/components/tour/tour.js b/web/js/components/tour/tour.js
index c087b3485..ffa71a1ea 100644
--- a/web/js/components/tour/tour.js
+++ b/web/js/components/tour/tour.js
@@ -106,7 +106,15 @@ class Tour extends React.Component {
}
decreaseStep(e) {
- if (this.state.currentStep - 1 >= 1) this.setState({ currentStep: this.state.currentStep - 1 });
+ if (this.state.currentStep - 1 >= 1) {
+ this.setState({ currentStep: this.state.currentStep - 1 });
+ } else {
+ this.setState({
+ currentStep: 1,
+ modalInProgress: false,
+ modalStart: true
+ });
+ }
}
render() {
diff --git a/web/js/components/tour/widget-steps.js b/web/js/components/tour/widget-steps.js
index 74bb02223..64336880d 100644
--- a/web/js/components/tour/widget-steps.js
+++ b/web/js/components/tour/widget-steps.js
@@ -5,7 +5,7 @@ class Steps extends React.Component {
render() {
return (
<div className="step-container">
- <a href="#" className={this.props.currentStep === 1 ? 'step-previous disabled' : 'step-previous'} aria-label="Previous" onClick={this.props.decreaseStep}>
+ <a href="#" className={'step-previous'} aria-label="Previous" onClick={this.props.decreaseStep}>
<i className="fa fa-arrow-circle-left" aria-hidden="true"></i>
</a>
<div className="step-counter">