Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have report tooltip follow same display rules as rest of anlysis buil… #647

Merged
merged 1 commit into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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