           callback  : -> modal.cancel()
 
 
+  resetInput:->
+
+    @input.setValue('')
+    @hideInput()
+
+
+  hideInput:->
+
+    @inputView.hide()
+    @warning.hide()
+    @emit "DomainInputCancelled"
+
   toggleInput:->
 
     @inputView.toggleClass 'hidden'

        spellcheck      : no
      callback          : @bound 'addDomain'

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

        @domainController.addItem { domain, machineId }
        computeController.domains = []

        @hideInput()

      .catch (err)=>
        kd.warn "Failed to create domain:", err
