 ComputeHelpers = require './computehelpers'
 sendDataDogEvent = require '../util/sendDataDogEvent'
 HelpSupportModal = '../commonviews/helpsupportmodal'
+showError = require 'app/util/showError'
 
 
 module.exports = class EnvironmentsMachineStateModal extends EnvironmentsModalView

    whoami().isEmailVerified (err, verified)=>

      kd.warn err  if err?

      if not verified
        @buildVerifyView()

      callback : =>
        @showBusy "Working..."
        @machine.jMachine.approve (err)=>
          unless showError err
            @_busy = no
            @buildInitial()

