mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Call valid Job when confirming domain delete action
This commit is contained in:
parent
78d473f3e6
commit
59a6251510
1 changed files with 4 additions and 4 deletions
|
@ -24,9 +24,9 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
|
||||||
|
|
||||||
confirmed = params[:confirmed] ? true : false
|
confirmed = params[:confirmed] ? true : false
|
||||||
action = if confirmed
|
action = if confirmed
|
||||||
@registrant_verification.domain_registrant_delete_reject!("email link #{initiator}")
|
|
||||||
else
|
|
||||||
@registrant_verification.domain_registrant_delete_confirm!("email link #{initiator}")
|
@registrant_verification.domain_registrant_delete_confirm!("email link #{initiator}")
|
||||||
|
else
|
||||||
|
@registrant_verification.domain_registrant_delete_reject!("email link #{initiator}")
|
||||||
end
|
end
|
||||||
|
|
||||||
fail_msg = t("registrant_domain_delete_#{confirmed ? 'confirmed' : 'rejected'}_failed".to_sym)
|
fail_msg = t("registrant_domain_delete_#{confirmed ? 'confirmed' : 'rejected'}_failed".to_sym)
|
||||||
|
@ -36,9 +36,9 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
|
||||||
(render 'show' && return) unless action
|
(render 'show' && return) unless action
|
||||||
|
|
||||||
if confirmed
|
if confirmed
|
||||||
redirect_to registrant_domain_delete_confirm_path(@domain.id, confirmed: true) && return
|
redirect_to registrant_domain_delete_confirm_path(@domain.id, confirmed: true)
|
||||||
else
|
else
|
||||||
redirect_to registrant_domain_delete_confirm_path(@domain.id, rejected: true) unless confirmed
|
redirect_to registrant_domain_delete_confirm_path(@domain.id, rejected: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue