Skip to content

Commit

Permalink
Disabled Select Button For Insights in Spam2
Browse files Browse the repository at this point in the history
  • Loading branch information
naman-luthra authored Apr 6, 2022
1 parent 68d919a commit f5b5f86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/spam2/_spam.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@
<a class="nav-link btn btn-light border disabled text-dark d-inline-flex border-curve" id="delete-batch"><i class=" pt-1 pr-2 fa fa-trash text-danger" data-toggle="tooltip" data-placement="top" title="Delete Selected items"></i> Delete</a>
</li>
<% end %>
<% if params[:action] != "_spam_insights" %>
<li class="nav-item pr-4">
<a class="nav-link btn btn-light border text-dark d-inline-flex border-curve" id="all" ><i class=" pt-1 pr-2 fa fa-check text-primary" data-toggle="tooltip" data-placement="top" title="Select all in this page"></i> Select</a>
</li>
<% end %>
<% if params[:action] != "_spam_revisions" && params[:action] != "_spam_insights" && params[:action] != "_spam_comments" %>
<li class="nav-item pr-4">
<a class="nav-link btn btn-light border disabled text-dark d-inline-flex border-curve" id="batch-ban" ><i class=" pt-1 pr-2 fa fa-flag text-warning" data-toggle="tooltip" data-placement="top" title="Ban Users"></i> Ban</a>
Expand Down Expand Up @@ -118,4 +122,4 @@
<%= render partial: 'spam2/insights' if @graph_spammed%>
<%= render partial: 'spam2/queue' if @queue %>
<%= render partial: 'spam2/flags' if @flags %>
<%= render partial: 'spam2/users' if @users %>
<%= render partial: 'spam2/users' if @users %>

0 comments on commit f5b5f86

Please sign in to comment.