diff --git a/app/pages/lab/workflow.cjsx b/app/pages/lab/workflow.cjsx index 21a8be4922..f2c8828ab6 100644 --- a/app/pages/lab/workflow.cjsx +++ b/app/pages/lab/workflow.cjsx @@ -72,9 +72,10 @@ EditWorkflowPage = React.createClass stats_completeness_type = @props.workflow.configuration.stats_completeness_type ? 'retirement' - disabledStyle = - opacity: 0.4 - pointerEvents: 'none' + disabledIfLive = if @props.project.live and @props.workflow.active + {opacity: 0.4, pointerEvents: 'none'} + else + {}

{@props.workflow.display_name} #{@props.workflow.id}{' '} @@ -90,7 +91,7 @@ EditWorkflowPage = React.createClass

If you have multiple workflows you can rearrange the order in which they are listed on your project's front page by clicking and dragging on the left gray tab next to each workflow title in the left menu bar.

{if @props.project.live and @props.workflow.active

You cannot edit an active workflow if the project is live.

} -
+
@@ -102,7 +103,7 @@ EditWorkflowPage = React.createClass
-
+
Tasks
@@ -386,19 +387,19 @@ EditWorkflowPage = React.createClass
} -
+
-
+
Visualize this workflow

-
+
-
+
{if @state.selectedTaskKey? and @props.workflow.tasks[@state.selectedTaskKey]? TaskEditorComponent = tasks[@props.workflow.tasks[@state.selectedTaskKey].type].Editor