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

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


module.exports = class SidebarMachineSharePopup extends KDModalView


    super options, data

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

    @createArrow()
