Skip to content

Commit

Permalink
Merge pull request #647 from neuroscout/fix_review_tooltip
Browse files Browse the repository at this point in the history
Have report tooltip follow same display rules as rest of anlysis buil…
  • Loading branch information
adelavega committed Aug 28, 2019
2 parents 3e5c33e + 174c47f commit fa08c0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions neuroscout/frontend/src/analysis_builder/Builder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ export default class AnalysisBuilder extends React.Component<BuilderProps & Rout
analysisId={analysis.analysisId}
runIds={analysis.runIds}
postReports={this.state.postReports}
defaultVisible={this.state.doTooltip && this.state.activeTab === ('review' as TabName)}
/>
<Review
model={this.state.model}
Expand Down
3 changes: 2 additions & 1 deletion neuroscout/frontend/src/analysis_builder/Report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ interface ReportProps {
analysisId?: string;
runIds: string[];
postReports: boolean;
defaultVisible: boolean;
}

interface ReportState {
Expand Down Expand Up @@ -208,7 +209,7 @@ export class Report extends React.Component<ReportProps, ReportState> {
<Tooltip
title={'Here you can preview the final design and correlation matrices. \
\nClick on the design matrix columns to view the timecourse in detail.'}
defaultVisible={true}
defaultVisible={this.props.defaultVisible}
>
<Icon type="info-circle" style={{ fontSize: '15px'}}/>
</Tooltip>
Expand Down

0 comments on commit fa08c0f

Please sign in to comment.