Skip to content

Commit

Permalink
add query info text per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Feb 6, 2025
1 parent dd32de9 commit 82e9de2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ class PanelGroupColumn extends React.Component<Props> {
}
}

public renderQueryInfo(queryState : string) {
if (queryState !== CohortStateType.NOT_LOADED) return null;
return <div className="text-muted text-center mb-1">( To query, drag and drop concepts into boxes below )</div>
}

public render() {
const { dispatch, panels, panelFilters, queryState } = this.props;
return (
Expand All @@ -107,6 +112,7 @@ class PanelGroupColumn extends React.Component<Props> {
<span>{this.setRunQueryButtonContent()}</span>
</div>
</div>
{this.renderQueryInfo(queryState)}
<PanelFilterGroup dispatch={dispatch} filters={panelFilters} />
<PanelGroup dispatch={dispatch} panels={panels} queryState={queryState} />
</div>
Expand Down

0 comments on commit 82e9de2

Please sign in to comment.