Browse Source

Fix method of the DELETE DATA button (#14855)

closed-social-v3
Takeshi Umeda 4 years ago
committed by GitHub
parent
commit
070026e634
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/admin/accounts/show.html.haml

+ 1
- 1
app/views/admin/accounts/show.html.haml View File

@ -180,7 +180,7 @@
= link_to t('admin.accounts.undo_suspension'), unsuspend_admin_account_path(@account.id), method: :post, class: 'button' if can?(:unsuspend, @account)
- if @deletion_request.present?
= link_to t('admin.accounts.delete'), admin_account_path(@account.id), method: :destroy, class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, @account)
= link_to t('admin.accounts.delete'), admin_account_path(@account.id), method: :delete, class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, @account)
- else
%div.action-buttons
%div

Loading…
Cancel
Save