Skip to content

Commit 44af9dd

Browse files
committed
Selection mode should be available for scatter
1 parent 0112ae8 commit 44af9dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/firefly/js/charts/ui/PlotlyToolbar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ export class ScatterToolbar extends SimpleComponent {
2929
render() {
3030
const {chartId, expandable, toggleOptions} = this.props;
3131
const {hasSelection, hasFilter, activeTrace, tbl_id, hasSelected, dragmode} = this.state;
32+
const hasSelectionMode = Boolean(tbl_id);
3233

3334
return (
3435
<div className='ChartToolbar'>
3536
<ActiveTraceSelect style={{marginRight: 20}} {...{chartId, activeTrace}}/>
3637
<SelectionPart {...{chartId, hasFilter, activeTrace, hasSelection, hasSelected, tbl_id}}/>
37-
<DragModePart {...{chartId, tbl_id, dragmode}}/>
38+
<DragModePart {...{chartId, tbl_id, dragmode, hasSelectionMode}}/>
3839
<div className='ChartToolbar__buttons'>
3940
<ResetZoomBtn style={{marginLeft: 10}} {...{chartId}} />
4041
<SaveBtn {...{chartId}} />

0 commit comments

Comments
 (0)