pull/10616/head
Andrew Watkins 2017-08-02 08:45:09 -07:00
parent 532a6a8c48
commit e1ab849b63
4 changed files with 11 additions and 6 deletions

View File

@ -15,7 +15,9 @@ const GraphTypeSelector = ({selectedGraphType, onSelectGraphType}) =>
> >
<div onClick={() => onSelectGraphType(graphType.type)}> <div onClick={() => onSelectGraphType(graphType.type)}>
{graphType.graphic} {graphType.graphic}
<p>{graphType.menuOption}</p> <p>
{graphType.menuOption}
</p>
</div> </div>
</div> </div>
)} )}

View File

@ -22,17 +22,17 @@ const Ranger = ({onSetRange, axes}) => {
/> />
</div> */} </div> */}
<div className="form-group col-sm-6"> <div className="form-group col-sm-6">
<label htmlFor="min">Lower Bound</label> <label htmlFor="min">Min</label>
<GrooveKnob <GrooveKnob
onSetValues={({leftValue, rightValue}) => { onSetValues={({leftValue, rightValue}) => {
console.log(leftValue, rightValue) console.log(leftValue, rightValue)
// onSetRange() // onSetRange()
}} }}
rightValue={Number(min)} rightValue={min}
/> />
</div> </div>
<div className="form-group col-sm-6"> <div className="form-group col-sm-6">
<label htmlFor="max">Upper Bound</label> <label htmlFor="max">Max</label>
<input <input
className="form-control input-sm" className="form-control input-sm"
type="number" type="number"

View File

@ -81,7 +81,8 @@ class DashboardPage extends Component {
handleCloseTemplateManager(isEdited) { handleCloseTemplateManager(isEdited) {
if ( if (
!isEdited || (isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert !isEdited ||
(isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert
) { ) {
this.setState({isTemplating: false}) this.setState({isTemplating: false})
} }

View File

@ -42,7 +42,9 @@ class GrooveKnob extends Component {
<div <div
className={classnames('one-or-any', {'use-right-value': !useLeftValue})} className={classnames('one-or-any', {'use-right-value': !useLeftValue})}
> >
<div className="one-or-any--auto">{leftLabel}</div> <div className="one-or-any--auto">
{leftLabel}
</div>
<div <div
className="one-or-any--switch" className="one-or-any--switch"
onClick={this.handleToggleLeftValue} onClick={this.handleToggleLeftValue}