 
     @finderController.treeController.on "HistoryItemCreated", (historyItem) =>
       @workspace.addToHistory historyItem
+
+    @finderController.treeController.on "ExportRequested", (node) =>
+      new TeamworkExportModal {}, node
 
   syncContent: (files) ->
     @workspaceRef.set { files }

      contextMenu         : yes
      useStorage          : no
      treeControllerClass : CollaborativeFinderTreeController

    @container?.destroy()
    @finder = @container = @finderController.getView()

class TeamworkFinderItem extends NFinderItem

  removeHighlight: ->
    super
    @exporter?.destroy()

# TODO: Should implement non-collaborative finder
# TODO: Should extend this class from NonCollab one.

