     else
       kd.singletons.windowController.addLayer this
       @on 'ReceivedClickElsewhere', @bound 'destroy'
+
+    kd.singletons.notificationController.on 'MachineShareActionTaken', @bound 'destroy'
 
 
   createArrow: ->


    super options, data

    {@isApproved} = options
    @setClass 'approved'  if @isApproved

    @createArrow()

kd               = require 'kd'
nick             = require 'app/util/nick'
KDView           = kd.View
remote           = require('app/remote').getInstance()
whoami           = require '../../util/whoami'
sinkrow          = require 'sinkrow'
Machine          = require 'app/providers/machine'
showError        = require 'app/util/showError'
envHelpers       = require 'ide/collaboration/helpers/environment'
AvatarView       = require 'app/commonviews/avatarviews/avatarview'
KDModalView      = kd.ModalView
KDButtonView     = kd.ButtonView
KDOverlayView    = kd.OverlayView
envDataProvider  = require 'app/userenvironmentdataprovider'
KDCustomHTMLView = kd.CustomHTMLView


module.exports = class SidebarMachineSharePopup extends KDModalView
