diff options
| author | Zog | 2018-01-25 11:39:32 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 11:39:32 +0100 |
| commit | 050772225bdff8ef165c1e8e841b1eec664d6c99 (patch) | |
| tree | 9b99d8645a384ce9bb5f8c8c4b58916d8500d365 | |
| parent | 5ecadfdead964381304fcf56a2564e2045988ef7 (diff) | |
| download | chouette-core-050772225bdff8ef165c1e8e841b1eec664d6c99.tar.bz2 | |
Refs #5598; Enable button to view a JourneyPattern when the user is not allowed to edit it
| -rw-r--r-- | app/javascript/journey_patterns/components/JourneyPattern.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/javascript/journey_patterns/components/JourneyPattern.js b/app/javascript/journey_patterns/components/JourneyPattern.js index ecbebe2cc..01734f3a3 100644 --- a/app/javascript/journey_patterns/components/JourneyPattern.js +++ b/app/javascript/journey_patterns/components/JourneyPattern.js @@ -136,10 +136,9 @@ export default class JourneyPattern extends Component{ <span className='fa fa-cog'></span> </div> <ul className='dropdown-menu'> - <li className={this.isDisabled('update') ? 'disabled' : ''}> + <li> <button type='button' - disabled={this.isDisabled('update')} onClick={this.props.onOpenEditModal} data-toggle='modal' data-target='#JourneyPatternModal' |
