 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
-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'
+KDCustomHTMLView = kd.CustomHTMLView
 
 
 module.exports = class SidebarMachineSharePopup extends KDModalView


    super options, data

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

    @createArrow()

    else
      kd.singletons.windowController.addLayer this
      @on 'ReceivedClickElsewhere', @bound 'destroy'

    kd.singletons.notificationController.on 'MachineShareActionTaken', @bound 'destroy'


  createArrow: ->
