Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
fix(Time series): only show comparison when there are 2 or more datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
rashley-iqt committed May 9, 2019
1 parent 704aac0 commit 2d61f6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@ class App extends Component {
<div className={style.accordionHeader} onClick={this.toggleShowComparison}>
Comparison {!showComparison && <FontAwesomeIcon icon={faAngleDoubleDown} />}{showComparison && <FontAwesomeIcon onClick={this.toggleShowComparison} icon={faAngleDoubleUp} />}
</div>
{ hasDataset &&
{ datasetCount >= 2 &&
<div className={ classNames({ [style.section]: true, [style.hierarchySection]: true, [style.hidden]: !showComparison }) }>
<ComparisonSelector startUid={startUuid} endUid={endUuid} />
</div>
}
{ !hasDataset &&
{ datasetCount < 2 &&
<div className={ classNames({ [style.section]: true, [style.dimSection]:true, [style.hierarchySection]: true, [style.hidden]: !showComparison }) }>
Please select datasets to continue
Please select at least 2 datasets to continue
</div>
}

Expand Down

0 comments on commit 2d61f6e

Please sign in to comment.