Add ability for admin to remove registry lock

This commit is contained in:
Maciej Szlosarczyk 2018-08-08 15:43:29 +03:00
parent 4743b1e2a5
commit dffe865d89
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
10 changed files with 174 additions and 29 deletions

View file

@ -23,6 +23,12 @@ en:
close_btn: Close dialog
submit_btn: Force delete domain
registry_lock_delete:
btn: Remove registry lock
confirm: Are you sure you want to remove registry lock that was set by registrant?
success: Registry lock removed
error: Registry lock could not be removed
versions:
time: Time
registrant: Registrant
@ -34,6 +40,7 @@ en:
outzone_time: Outzone time
delete_time: Delete time
force_delete_time: Force delete time
locked_by_registrant_at: Registry lock time
admin_contacts:
title: Admin. contacts

View file

@ -182,6 +182,7 @@ Rails.application.routes.draw do
resources :pending_updates
resources :pending_deletes
resource :force_delete, controller: 'domains/force_delete', only: %i[create destroy]
resource :registry_lock, controller: 'domains/registry_lock', only: :destroy
end
resources :domain_versions do