       type    : 'separator'
       visible : @_isKdRunning
     ,
-      label   : 'Restart kd ...'
+      label   : 'Restart kd...'
       click   : handleOpen 'sudo kd restart', 'terminal'
       visible : @_isKdRunning
       enabled : !@_inProgress


      result.forEach (machine) =>
        # { team, teamUrl } = parseTeam machine.teams
        item    = {
          label   : "#{machine.machineLabel} (#{machine.vmName})"
          submenu : [
          #   label : "Open #{team}"
          #   click : handleOpen teamUrl

        keys.map (key) ->
          return  if key is 'latest'
          teamName = teams[key]
          return { label: teamName, click: -> win.loadURL "https://#{key}.koding.com" }
        .filter(Boolean)

      submenu or= []

      submenu = submenu.concat [
        { type: 'separator', visible: !!submenu.length }
        { label: 'Login to Another Team', click: -> win.loadURL "https://koding.com/Teams" }
        { label: 'Create a Team', click: -> win.loadURL "https://koding.com/Teams/Create" }
      ]

      menu.unshift { type: 'separator', visible: on }
      menu.unshift { label: 'Your Teams', submenu }

    @_contextMenu = Menu.buildFromTemplate menu.concat menuItems

