       @updatesContainer.append(new PackageCard(pack, @packageManager, {back: 'Updates'}))
 
   updateAll: ->
+    @checkButton.prop('disabled', true)
     @updateAllButton.prop('disabled', true)
 
     packageCards = @getPackageCards()


  initialize: (@packageManager) ->
    super
    @updateAllButton.on 'click', => @updateAll()
    @checkButton.on 'click', =>
      @checkForUpdates(true)

    @updateAllButton.hide()
    @checkForUpdates()

    @packageManagerSubscription = @packageManager.on 'package-update-failed theme-update-failed', ({pack, error}) =>
      @updateErrors.append(new ErrorView(@packageManager, error))

  dispose: ->
    @packageManagerSubscription.dispose()

  beforeShow: (opts) ->
    if opts?.back

{$, ScrollView} = require 'atom-space-pen-views'
{CompositeDisposable} = require 'atom'
ErrorView = require './error-view'
PackageCard = require './package-card'

