Skip to content

Commit

Permalink
Merge pull request #3787 from rubyforgood/card-remove-button
Browse files Browse the repository at this point in the history
Restore remove button to dashboard cards
  • Loading branch information
awwaiid authored Jul 29, 2023
2 parents 5c77138 + dd0265f commit 7a4b9d0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/views/dashboard/_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@
content_tag(:div, **header_options) do %>
<%= header %>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse">
<i class="fas fa-minus"></i>
</button>
<% if type == :table %>
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
</button>
<% else %>
<button type="button" class="btn btn-tool" data-card-widget="collapse">
<i class="fas fa-minus"></i>
</button>
<% end %>
</div>
<% end
end
Expand Down

0 comments on commit 7a4b9d0

Please sign in to comment.