Skip to content

Commit

Permalink
Fix method of the DELETE DATA button (mastodon#14855)
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo authored and thenameisnigel-old committed Sep 28, 2020
1 parent 2a497a8 commit 03cbc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/accounts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03cbc59

Please sign in to comment.