       tagName  : 'p'
       cssClass : 'success'
       partial  : """
-        Your subdomain <strong>#{domainName.getValue()}</strong> has been added.
+        Your subdomain <strong>#{domainName}</strong> has been added.
         You can dismiss this panel and point your new domain to one of your VMs
         on the right.
       """

    {message}             = @newDomainEntryForm
    {createButton}        = @newDomainEntryForm.buttons
    {domains, domainName} = @newDomainEntryForm.inputs
    domainName            = "#{domainName.getValue()}.#{domains.getValue()}"
    {getDomainInfo, getDomainSuggestions} = KD.remote.api.JDomain

    @newDomainEntryForm.domainListView?.unsetClass 'in'


    , callback

  showSuccess:(domain) ->
    domainName =
      Encoder.XSSEncode @subDomainEntryForm.inputs.domainName.getValue()

    @emit 'DomainSaved', domain
    @successNote?.destroy()

