Skip to content

Commit

Permalink
refactor(PatternStopsPanel): disable normalize if no stops
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Nov 8, 2023
1 parent 62216ca commit 954f0a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/editor/components/pattern/PatternStopsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,14 @@ export default class PatternStopsPanel extends Component<Props, State> {
</h4>
<div style={{width: '100%'}}>
<Button
disabled={!patternHasStops}
onClick={this._clickNormalizeStopTimes}
style={{marginBottom: '5px'}}
className='pull-right'
block
bsSize='small'>
bsSize='small'
title={!patternHasStops ? 'Must add stops to pattern before normalizing' : ''}
>
<Icon type='clock-o' />{' '}
Normalize stop times
</Button>
Expand Down

0 comments on commit 954f0a2

Please sign in to comment.