mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
parent
1fad07963f
commit
0122c42268
3 changed files with 6 additions and 4 deletions
|
@ -51,11 +51,13 @@ class Registrar
|
|||
end
|
||||
end
|
||||
|
||||
parsed_response = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
if response.code == '200'
|
||||
flash[:notice] = t '.transferred'
|
||||
flash[:notice] = t '.transferred', count: parsed_response[:data].size
|
||||
redirect_to registrar_domains_url
|
||||
else
|
||||
@api_errors = JSON.parse(response.body, symbolize_names: true)[:errors]
|
||||
@api_errors = parsed_response[:errors]
|
||||
render :new
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue