     background: null
     avatar: null
     pages: []
+    selectedWorkflow: null
 
   componentDidMount: ->
     document.documentElement.classList.add 'on-project-page'
     @fetchInfo @props.project
+    @getSelectedWorkflow @props.project, @props.preferences
     @updateSugarSubscription @props.project
 
   componentWillUnmount: ->

      .then (pages) =>
        @setState {pages}

  _lastSugarSubscribedID: null

  updateSugarSubscription: (project) ->

          <a href={@redirectClassifyLink(@props.project.redirect)} className="tabbed-content-tab" target="_blank">
            <Translate content="project.nav.classify" />
          </a>
        else if @state.selectedWorkflow is 'PENDING'
          <span className="classify tabbed-content-tab" title="Loading..." style={opacity: 0.5}>
            <Translate content="project.nav.classify" />
          </span>
        else
          if @state.selectedWorkflow?
            query = workflow: @state.selectedWorkflow.id
          <Link to="#{projectPath}/classify" query={query} activeClassName="active" className="classify tabbed-content-tab">
            <Translate content="project.nav.classify" />
          </Link>}

