     selectedTaskKey: @props.workflow.first_task
     goldStandardFilesToImport: null
     forceReloader: 0
+    deletionInProgress: false
+    deletionError: null
 
   workflowLink: ->
     [owner, name] = @props.project.slug.split('/')

    @props.workflow.addLink 'subject_sets', [DEMO_SUBJECT_SET_ID]

  handleDelete: ->
    @props.workflow.delete().then =>
      @props.project.uncacheLink 'workflows'
      @history.pushState(null, "/lab/#{@props.project.id}")

  handleTaskChange: (taskKey, path, value) ->
    changes = {}


          <div>
            <small>
              <button type="button" className="minor-button" disabled={@state.deletionInProgress} data-busy={@state.deletionInProgress || null} onClick={@handleDelete}>
                Delete this workflow
              </button>
            </small>{' '}
            {if @state.deletionError?
              <span className="form-help error">{@state.deletionError.message}</span>}
          </div>
        </div>

