         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'
 
 
 

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

require './styl/sidebar.styl'


    if draft.getIn ['config', 'remoteDetails', 'originalUrl']
      menuItems['Open on GitLab'] = { callback }
    if whoami()._id is draft.get 'originId'
      menuItems['Edit'] = { callback }
    else
      menuItems['View Stack'] = { callback }

    menuItems['Initialize'] = { callback }
    menuItems['Clone'] = { callback }  if canCreateStacks() or isAdmin()

    if draft.get('machines').size
      menuItems['Make Team Default'] = { callback } if isAdmin()
      if whoami()._id is draft.get('originId')
        if draft.get('accessLevel') is 'private'
        then menuItems['Share With Team'] = { callback }
        else  menuItems['Make Private'] = { callback }

    menuItems['Delete'] = { callback }

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