mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Move affected domains to the top of the hash, update integration test
This commit is contained in:
parent
3e81366cfc
commit
6fb1e44cca
6 changed files with 15 additions and 11 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue