Interactive interface for browsing global, full-resolution satellite imagery
Add titles to disabled buttons
Benjamin King0df7e9357bda
diff --git a/web/js/components/timeline/timeline-controls/animation-button.js b/web/js/components/timeline/timeline-controls/animation-button.jsindex e7802c4b8..66aa015b9 100644--- a/web/js/components/timeline/timeline-controls/animation-button.js+++ b/web/js/components/timeline/timeline-controls/animation-button.js@@ -10,7 +10,7 @@ class AnimationButton extends PureComponent {this.props.disabled ? 'wv-disabled-button ' + className : className}id="animate-button"- title="Set up animation"+ title={this.props.title ? this.props.title : 'Set up animation'}onClick={this.props.clickAnimationButton}><i id="wv-animate" className="fas fa-video wv-animate" />diff --git a/web/js/components/timeline/timeline-controls/axis-timescale-change-tooltip.js b/web/js/components/timeline/timeline-controls/axis-timescale-change-tooltip.jsindex b46c8fc9b..7fb1f35f4 100644--- a/web/js/components/timeline/timeline-controls/axis-timescale-change-tooltip.js+++ b/web/js/components/timeline/timeline-controls/axis-timescale-change-tooltip.js@@ -9,50 +9,51 @@ import PropTypes from 'prop-types';*/class AxisTimeScaleChangeTooltip extends PureComponent {// Handle change axis timescale- changeTimeScale = (timeScale) => {+ changeTimeScale = timeScale => {this.props.changeTimeScale(timeScale);- }+ };// Individual linking timescale handlerschangeTimeScaleYear = () => {this.changeTimeScale(1);- }+ };changeTimeScaleMonth = () => {this.changeTimeScale(2);- }+ };changeTimeScaleDay = () => {this.changeTimeScale(3);- }+ };changeTimeScaleHour = () => {this.changeTimeScale(4);- }+ };changeTimeScaleMinute = () => {this.changeTimeScale(5);- }+ };render() {- let {- timeScale,- toolTipHovered,- hasSubdailyLayers- } = this.props;+ let { timeScale, toolTipHovered, hasSubdailyLayers } = this.props;return (<React.Fragment><div id="zoom-btn-container-axis"><spanid="current-zoom"- className={'zoom-btn zoom-level-display-text'}+ className={+ 'zoom-btn zoom-level-display-text zoom-' + timeScale.toLowerCase()+ }>{timeScale}</span>- <div className="wv-zoom-tooltip"+ <div+ className="wv-zoom-tooltip"style={{ display: toolTipHovered ? 'block' : 'none' }}><div id="timeline-zoom" className="timeline-zoom">- <label style={{- textDecoration: 'underline',- paddingBottom: '4px',- color: '#fff'- }}>+ <label+ style={{+ textDecoration: 'underline',+ paddingBottom: '4px',+ color: '#fff'+ }}+ >TIMESCALE</label><span@@ -76,8 +77,8 @@ class AxisTimeScaleChangeTooltip extends PureComponent {>DAY</span>- {hasSubdailyLayers- ? <React.Fragment>+ {hasSubdailyLayers ? (+ <React.Fragment><spanid="zoom-hours"className="zoom-btn zoom-btn-inactive zoom-hours"@@ -93,8 +94,7 @@ class AxisTimeScaleChangeTooltip extends PureComponent {MINUTE</span></React.Fragment>- : null- }+ ) : null}</div></div></div>diff --git a/web/js/containers/sidebar/footer-content.js b/web/js/containers/sidebar/footer-content.jsindex 58d5b6969..a05b830c6 100644--- a/web/js/containers/sidebar/footer-content.js+++ b/web/js/containers/sidebar/footer-content.js@@ -154,7 +154,7 @@ function mapStateToProps(state, ownProps) {const { showAll } = state.events;const { selectedGranules } = data;const events = lodashGet(requestedEvents, 'response');- const activeString = compare.isCompareA ? 'active' : 'activeB';+ const activeString = compare.activeString;const activeLayers = layers[activeString];const counts = getSelectionCounts(activeLayers, selectedGranules);const dataSelectionSize = getDataSelectionSize(selectedGranules);diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex 1dccc5f77..a0fcf5350 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -774,7 +774,8 @@ class Timeline extends React.Component {isSmallScreen,toggleActiveCompareState,parentOffset,- isTourActive+ isTourActive,+ isDataDownload} = this.props;let {initialLoadComplete,@@ -853,6 +854,7 @@ class Timeline extends React.Component {<AnimationButtonclickAnimationButton={this.clickAnimationButton}disabled={animationDisabled}+ title={isCompareModeActive ? 'Animation feature is deactivated when Compare feature is active' : isDataDownload ? 'Animation feature is deactivated when Data Download feature is active' : ''}/></div>@@ -1135,6 +1137,7 @@ function mapStateToProps(state) {!lodashGet(map, 'ui.selected.frameState_') ||sidebar.activeTab === 'download' ||compare.active,+ isDataDownload: sidebar.activeTab === 'download',isAnimationPlaying: animation.isPlaying};}@@ -1210,6 +1213,7 @@ Timeline.propTypes = {isAnimationPlaying: PropTypes.bool,isAnimationWidgetOpen: PropTypes.bool,isCompareModeActive: PropTypes.bool,+ isDataDownload: PropTypes.bool,isSmallScreen: PropTypes.bool,isTourActive: PropTypes.bool,leftArrowDisabled: PropTypes.bool,