 # Local (client-only) document of importing files
-class ImportingFile extends BaseDocument
+class @ImportingFile extends BaseDocument
   # name: user's file name
   # status: current status or error message displayed to user
   # readProgress: progress of reading from file, in %

  #   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
  #   errored: file processing errored

  @Meta

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

Deps.autorun ->
  return

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

  return unless importingFilesCount
