aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-01-25 11:39:32 +0100
committercedricnjanga2018-01-31 07:16:22 -0800
commit65db4fe0706d1c47f32ed51b219244693d3dbddf (patch)
tree661ce3cc9bd22e420e1f7d91cef3be628545f837
parente126e59759d2fcb8d5989cf154a5f56ff5268f02 (diff)
downloadchouette-core-65db4fe0706d1c47f32ed51b219244693d3dbddf.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.js3
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'