diff options
| author | Zog | 2018-04-06 08:07:46 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-10 23:34:06 -0700 | 
| commit | 9931afca317d0a69be52d92f582411deb7dc10d2 (patch) | |
| tree | efa5bfe4226d97bc346c5996976bf6d29cf3bafb | |
| parent | 03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4 (diff) | |
| download | chouette-core-9931afca317d0a69be52d92f582411deb7dc10d2.tar.bz2 | |
Refs #6411; Fix routes editor
Disable "moveup" action on first stop, and "mouvedown" on last
| -rw-r--r-- | app/javascript/routes/components/StopPoint.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/app/javascript/routes/components/StopPoint.js b/app/javascript/routes/components/StopPoint.js index 368ec8261..768d069c0 100644 --- a/app/javascript/routes/components/StopPoint.js +++ b/app/javascript/routes/components/StopPoint.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'  import BSelect2 from './BSelect2'  import OlMap from './OlMap' -import { defaultAttribute } from '../actions'  +import { defaultAttribute } from '../actions'  export default function StopPoint(props, {I18n}) {    return ( @@ -42,13 +42,13 @@ export default function StopPoint(props, {I18n}) {            <div              className={'btn btn-link' + (props.first ? ' disabled' : '')} -            onClick={props.onMoveUpClick} +            onClick={props.first ? null : props.onMoveUpClick}            >              <span className='fa fa-arrow-up'></span>            </div>            <div              className={'btn btn-link' + (props.last ? ' disabled' : '')} -            onClick={props.onMoveDownClick} +            onClick={props.last ? null : props.onMoveDownClick}            >              <span className='fa fa-arrow-down'></span>            </div> | 
