Move affected domains to the top of the hash, update integration test

This commit is contained in:
Maciej Szlosarczyk 2018-07-05 17:53:03 +03:00
parent 3e81366cfc
commit 6fb1e44cca
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
6 changed files with 15 additions and 11 deletions

View file

@ -44,7 +44,10 @@ class Registrar
parsed_response = JSON.parse(response.body, symbolize_names: true)
if response.code == '200'
flash[:notice] = t '.replaced'
notices = [t('.replaced')]
notices << "#{t('.affected_domains')}: #{parsed_response[:affected_domains].join(', ')}"
flash[:notice] = notices
redirect_to registrar_domains_url
else
@api_errors = parsed_response[:errors]