mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
added flash notification
This commit is contained in:
parent
89c2ef1cf1
commit
962c343ab7
2 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,7 @@ class Registrar
|
||||||
@data = @domain.delete(params[:domain])
|
@data = @domain.delete(params[:domain])
|
||||||
@results = @data.css('result')
|
@results = @data.css('result')
|
||||||
if response_ok?
|
if response_ok?
|
||||||
|
flash[:notice] = t('.deleting_request')
|
||||||
redirect_to info_registrar_domains_url(domain_name: params[:domain][:name])
|
redirect_to info_registrar_domains_url(domain_name: params[:domain][:name])
|
||||||
else
|
else
|
||||||
params[:domain_name] = params[:domain][:name]
|
params[:domain_name] = params[:domain][:name]
|
||||||
|
|
|
@ -16,6 +16,9 @@ en:
|
||||||
info:
|
info:
|
||||||
transfer_btn: Transfer
|
transfer_btn: Transfer
|
||||||
|
|
||||||
|
destroy:
|
||||||
|
deleting_request: Domain deletion request was sent
|
||||||
|
|
||||||
search_form:
|
search_form:
|
||||||
download_btn: Download CSV
|
download_btn: Download CSV
|
||||||
reset_btn: Reset
|
reset_btn: Reset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue