     return null  if @state.collapsed
 
     <section className='Workspaces-section'>
-      <h3>WORKSPACES</h3>
+      <h3 onClick={@bound 'handleWorkspacesTitleClick'}>WORKSPACES</h3>
       {@renderWorkspaces()}
     </section>
 

kd          = require 'kd'
React       = require 'kd-react'
classnames  = require 'classnames'
toImmutable = require 'app/util/toImmutable'
Link        = require 'app/components/common/link'

module.exports = class SidebarMachinesListItem extends React.Component


      {@renderWorkspaceSection()}
    </div>


  #
  # LEGACY METHODS
  #

  handleWorkspacesTitleClick: (event) ->

    { computeController } = kd.singletons

    status  = @machine ['status', 'state']
    users   = (@machine 'users').toJS()
    isOwner = yes for user in users when user.owner

    return  unless isOwner
    return  unless status is Machine.State.Running

    workspaces = []
    @props.machine.get('workspaces').map (ws) ->
      workspaces.push remote.revive ws.toJS()
    modal = new MoreWorkspacesModal {}, workspaces

    # TODO: handle new workspace creation
    # modal.once 'NewWorkspaceRequested', @bound 'createAddWorkspaceInput'


