         @domainController.addItem { domain, machineId }
         computeController.domains = []
 
-        @input.setValue ""
-        @inputView.hide()
-        @emit "DomainInputCancelled"
+        @hideInput()
 
       .catch (err)=>
         kd.warn "Failed to create domain:", err

    windowController.addLayer @input
    @input.setFocus()

    @input.off  "ReceivedClickElsewhere"
    @input.once "ReceivedClickElsewhere", (event)=>
      return  if $(event.target).hasClass 'domain-toggle'
      @emit "DomainInputCancelled"
      @inputView.hide()
      @warning.hide()



        spellcheck      : no
      callback          : @bound 'addDomain'

    @input.on 'EscapePerformed', @bound 'resetInput'

    @inputView.addSubView new KDView
      partial           : @domainSuffix
      cssClass          : 'domain-suffix'
