   triggerDownload: ({downloadUrl, lastExported}) ->
     downloadState =
       tryToDownload: false
-      exportedSinceLoad: true
       downloadUrl: downloadUrl
       lastExported: lastExported
       forceDownloadUrl: null
 
     @setState(downloadState)
 
-  downloadCurrentExport: (linkClickEvent) ->
-    linkClickEvent.preventDefault()
-    @setState(tryToDownload: true)
-    @validateDownloadURL(@state)
+  downloadCurrentExport: ->
+    @setState(tryToDownload: true, downloadedSinceLoad: true)
 
   addBindListener: ->
     PerformanceExportStore.on('performanceExport.completed', @handleCompletedExport)

    forceDownloadUrl: null
    lastExported: null
    tryToDownload: false
    exportedSinceLoad: false
    downloadHasError: false

  isUpdateValid: (id) ->


  render: ->
    {courseId, className} = @props
    {downloadUrl, lastExported, downloadedSinceLoad, downloadHasError, tryToDownload, forceDownloadUrl} = @state

    className += ' export-button'
    actionButtonClass = 'primary'
    actionButtonClass = 'default' if downloadedSinceLoad

    actionButton =
      <AsyncButton
        bsStyle={actionButtonClass}
        onClick={-> PerformanceExportActions.export(courseId)}
        isWaiting={PerformanceExportStore.isExporting(courseId) or tryToDownload}
        isFailed={PerformanceExportStore.isFailed(courseId) or downloadHasError}
        waitingText='Generating Export…'>
        Generate Export
      </AsyncButton>

    if forceDownloadUrl?
      actionButton =
        <BS.Button
          bsStyle={actionButtonClass}
          href={forceDownloadUrl}
          onClick={@downloadCurrentExport}>Download Export</BS.Button>

    if lastExported?
      lastExportedTime = <i>
        <TimeDifference date={lastExported}/>
      </i>
      lastExportedLabel = <small className='export-button-time pull-right'>
        Last exported {lastExportedTime}
      </small>

    <span className={className}>
      <div className='export-button-buttons'>
        {actionButton}
      </div>
      {lastExportedLabel}
    </span>

