Skip to content

Commit

Permalink
Only display measurement label button if allowGeometryLabels is true
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jun 26, 2024
1 parent dd45cf3 commit 902fa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Redlining.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Redlining extends React.Component {
</ComboBox>
</span>
) : null}
{this.props.redlining.geomType !== 'Text' ? (
{this.props.redlining.geomType !== 'Text' && this.props.allowGeometryLabels ? (
<button
className={"button" + (this.props.redlining.measurements ? " pressed" : "")}
onClick={() => this.updateRedliningState({measurements: !this.props.redlining.measurements, style: {...this.props.redlining.style, text: ''}})}
Expand Down

0 comments on commit 902fa2c

Please sign in to comment.