   #   else new MoreVMsModal {}, KD.userMachines
 
 
-  handleMoreWorkspacesClick: (data) ->
-    workspaces = for workspace in KD.userWorkspaces when workspace.machineUId is data.machineUId
-      workspace.machineLabel = data.machineLabel
-      workspace
-
-    data.workspaces = workspaces or []
-
-    new MoreWorkspacesModal {}, data
+  # handleMoreWorkspacesClick: (data) ->
+  #   workspaces = for workspace in KD.userWorkspaces when workspace.machineUId is data.machineUId
+  #     workspace.machineLabel = data.machineLabel
+  #     workspace
+
+  #   data.workspaces = workspaces or []
+
+  #   new MoreWorkspacesModal {}, data
 
 
   addFollowedTopics: ->


    #   @mapWorkspaceWithChannel data, node  if data.type is 'workspace'

    @emit 'MachinesListed'


  getDummyWorkspace: (machine) ->


  listMachines: (machines) ->

    # treeData = []
    # nickname = KD.nick()

    # for machine in machines

    #   treeData.push machine

    #   unless machine.isPermanent()
    #     treeData.push
    #       title        : 'Workspaces'
    #       type         : 'title'
    #       parentId     : machine.getId()
    #       id           : machine.getData().getId()
    #       machineUId   : machine.uid
    #       machineLabel : machine.slug or machine.label

    #   ideRoute     = "/IDE/#{machine.slug or machine.label}/my-workspace"
    #   machineOwner = machine.getOwner()
    #   isMyMachine  = machine.isMine()
    #   ideRoute     = "#{ideRoute}/#{machineOwner}"  unless isMyMachine
    #   hasWorkspace = (KD.userWorkspaces.filter ({name, machineUId}) -> return name is 'My Workspace' and machineUId is machine.uid).length > 0

    #   if machine.isMine() and not hasWorkspace
    #     KD.userWorkspaces.push @getDummyWorkspace machine

    #   @sortWorkspaces KD.userWorkspaces

    #   KD.userWorkspaces.forEach (workspace) ->

    #     unless workspace instanceof KD.remote.api.JWorkspace
    #       workspace = KD.remote.revive workspace

    #     if workspace.machineUId is machine.uid
    #       ideRoute = "/IDE/#{machine.slug or machine.label}/#{workspace.slug}"
    #       title    = "#{workspace.name}"

    #       unless isMyMachine
    #         if channelId = workspace.channelId
    #         then ideRoute = "/IDE/#{channelId}"
    #         else
    #           return

    #       if not workspace.isDefault or workspace.slug isnt 'my-workspace'
    #         title += "<span class='ws-settings-icon'></span>"

    #       treeData.push
    #         title        : title
    #         type         : 'workspace'
    #         href         : ideRoute
    #         machineLabel : machine.slug or machine.label
    #         data         : workspace
    #         id           : workspace._id
    #         parentId     : machine.getId()

    # for data in treeData

