     then @setClass "progress"
     else @utils.wait 1000, =>
       @resetView()
+  viewAppended:->
 
-  pistachio:->
+    @addSubView @childView
 
-    """
-    {{> @childView}}
-    """
+    file = @getData()
+    fileInfo = file.getLocalFileInfo()
+
+    if fileInfo.lastUploadedChunk
+
+      {lastUploadedChunk, totalChunks} = fileInfo
+
+      if lastUploadedChunk is totalChunks
+        file.removeLocalFileInfo()
+
+      @showProgressView
+        percentage : 100 * lastUploadedChunk / totalChunks

class NFinderItem extends JTreeItemView

  JView.mixin @prototype

  constructor:(options = {},data)->


    @on "ItemBeingDeleted", =>
      data.removeLocalFileInfo()


  getChildConstructor: (type) ->
    switch type
