mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Alert admin if dispute created for unregistered domain
This commit is contained in:
parent
36f5ec734e
commit
cb0051d4e0
2 changed files with 27 additions and 9 deletions
|
@ -27,7 +27,10 @@ module Admin
|
|||
def create
|
||||
@dispute = Dispute.new(dispute_params)
|
||||
if @dispute.save
|
||||
redirect_to admin_disputes_url, notice: 'Dispute was successfully created.'
|
||||
notice = 'Dispute was successfully created'
|
||||
notice += @dispute.domain ? '.' : ' for domain that is not registered.'
|
||||
|
||||
redirect_to admin_disputes_url, notice: notice
|
||||
else
|
||||
render :new
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue