Commit 2441e477 authored by sfang97's avatar sfang97 Committed by serenafang

Reject request button deletes user now

parent 2ae76872
......@@ -178,11 +178,7 @@
.card-body
= render partial: 'admin/users/user_reject_effects'
%br
%button.delete-user-button.btn.gl-button.btn-danger{ data: { 'gl-modal-action': 'delete',
delete_user_url: admin_user_path(@user, hard_delete: true),
block_user_url: block_admin_user_path(@user),
username: sanitize_name(@user.name) } }
= s_('AdminUsers|Reject request')
= link_to 'Reject request', admin_user_path(@user, hard_delete: true), method: :delete, class: "btn gl-button delete-user-button btn-danger", data: { confirm: s_('AdminUsers|Are you sure?') }
- else
.card.border-info
.card-header.gl-bg-blue-500.gl-text-white
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment