   #   importing: file currently being imported
   #   finished: file processing finished successfully, but it
   #             was not imported (import canceled or already exists)
-  #   imported: file processing finished successfully and at was imported
+  #   imported: file processing finished successfully and it was imported
   #   errored: file processing errored
 
   @Meta

Template.importingFilesItem.hideCancel = ->
  # We keep cancel shown even when canceled is set, until we get back
  # in the file upload method callback and set finished as well
  @state in ['finished', 'errored']

Template.importingFilesItem.state = ->
  return 'canceled' if @canceled
  return @state

Template.importingFilesItem.publication = ->

    $('body').add('html').removeClass 'overlay-active'

Deps.autorun ->
  return

  importingFilesCount = ImportingFile.documents.find().count()

  return unless importingFilesCount
