Add remove clientHold to registrar UI

This commit is contained in:
Alex Sherman 2020-02-19 14:09:45 +05:00
parent adba253d01
commit 3b332da0bb
9 changed files with 30 additions and 0 deletions

View file

@ -153,6 +153,14 @@ class Registrar
render json: scope.pluck(:name, :code).map { |c| { display_key: "#{c.second} #{c.first}", value: c.second } }
end
def remove_hold
authorize! :remove_hold, Depp::Domain
return unless params[:domain_name]
@data = @domain.remove_hold(params)
redirect_to info_registrar_domains_url(domain_name: params[:domain_name])
end
private
def init_domain