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)}>
{graphType.graphic}
<p>{graphType.menuOption}</p>
<p>
{graphType.menuOption}
</p>
</div>
</div>
)}

View File

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

View File

@ -81,7 +81,8 @@ class DashboardPage extends Component {
handleCloseTemplateManager(isEdited) {
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})
}

View File

@ -42,7 +42,9 @@ class GrooveKnob extends Component {
<div
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
className="one-or-any--switch"
onClick={this.handleToggleLeftValue}