diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-12-17 23:01:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 23:01:21 +0100 |
commit | 7f803c41e2ca54b7b787b1f111f91357136c0e68 (patch) | |
tree | 4583b08c706ac25f05be5dc2908d52a55a71c81a /app/views/admin | |
parent | 0c17fd91091fd2f230224d5fce218688d480502c (diff) |
Add ability to purge undeliverable domains from admin interface (#16686)
* Add ability to purge undeliverable domains from admin interface * Add tests
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/instances/show.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/admin/instances/show.html.haml b/app/views/admin/instances/show.html.haml index d6542ac3e..e520bca0c 100644 --- a/app/views/admin/instances/show.html.haml +++ b/app/views/admin/instances/show.html.haml @@ -84,3 +84,5 @@ = link_to t('admin.instances.delivery.stop'), stop_delivery_admin_instance_path(@instance), data: { confirm: t('admin.accounts.are_you_sure'), method: :post }, class: 'button' - else = link_to t('admin.instances.delivery.restart'), restart_delivery_admin_instance_path(@instance), data: { confirm: t('admin.accounts.are_you_sure'), method: :post }, class: 'button' + - unless @instance.delivery_failure_tracker.available? && @instance.accounts_count > 0 + = link_to t('admin.instances.purge'), admin_instance_path(@instance), data: { confirm: t('admin.instances.confirm_purge'), method: :delete }, class: 'button' |