Add soft block button in moderation user view

This commit is contained in:
Carlos Iniesta
2020-10-25 22:26:29 +01:00
committed by Javi Martín
parent 4c8dfb6695
commit 49edd6a9b1
10 changed files with 43 additions and 7 deletions

View File

@@ -22,12 +22,8 @@
<%= t("moderation.users.index.hidden") %>
<% else %>
<%= render Admin::TableActionsComponent.new(user, actions: []) do |actions| %>
<%= actions.action(
:hide,
text: t("moderation.users.index.hide"),
method: :put,
class: "button hollow alert"
) %>
<%= actions.action(:soft_block, text: t("moderation.users.index.soft_hide"), method: :put) %>
<%= actions.action(:hide, text: t("moderation.users.index.hide"), method: :put) %>
<% end %>
<% end %>
</td>