Skip to content
Snippets Groups Projects
Unverified Commit 2202c989 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

only show funnel legend header if there are action buttons but no title (#10121)

parent 4bc58241
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ export default class Funnel extends Component {
height: 4,
};
static isSensible(cols, rows) {
static isSensible({ cols, rows }) {
return cols.length === 2;
}
......@@ -166,12 +166,15 @@ export default class Funnel extends Component {
actionButtons={actionButtons}
/>
)}
<LegendHeader
className="flex-no-shrink"
series={series._raw || series}
actionButtons={!hasTitle && actionButtons}
onChangeCardAndRun={onChangeCardAndRun}
/>
{!hasTitle &&
actionButtons && ( // always show action buttons if we have them
<LegendHeader
className="flex-no-shrink"
series={series._raw || series}
actionButtons={actionButtons}
onChangeCardAndRun={onChangeCardAndRun}
/>
)}
<FunnelNormal {...this.props} className="flex-full" />
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment