         computeController.makeTeamDefault draft.toJS(), yes
       when 'Delete'
         computeController.deleteStackTemplate draft.toJS(), yes
+      when 'Share With Team'
+        computeController.sharingStackTemplate draft.get('_id'), 'group'
+      when 'Make Private'
+        computeController.sharingStackTemplate draft.get('_id'), 'private'
 
 
 


    if draft.getIn ['config', 'remoteDetails', 'originalUrl']
      menuItems['Open on GitLab'] = { callback }

    ['Edit', 'Initialize'].forEach (name) => menuItems[name] = { callback }
    menuItems['Clone'] = { callback }  if canCreateStacks() or isAdmin()
    menuItems['Make Team Default'] = { callback } if isAdmin() and draft.get('machines').size
    menuItems['Delete'] = { callback }

    { top } = findDOMNode(@refs["draft-#{id}"]).getBoundingClientRect()

DEFAULT_LOGOPATH = '/a/images/logos/sidebar_footer_logo.svg'
MENU = null
isAdmin = require 'app/util/isAdmin'
remote = require 'app/remote'
whoami = require 'app/util/whoami'

canCreateStacks = require 'app/util/canCreateStacks'

require './styl/sidebar.styl'
