Allow adding new cards even in filtered or All Collections views
This is viable now that you can change the collection a card is in as introduced in c4ca5d34e4
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Considering
|
||||
</h2>
|
||||
|
||||
<% if collection = filter.single_collection || (Current.user.collections.first if Current.user.collections.one?) %>
|
||||
<% if collection = filter.single_collection || Current.user.collections.first %>
|
||||
<%= button_to collection_cards_path(collection), method: :post, class: "card card--new-card-button btn", form_class: "full-width" do %>
|
||||
<div class="card__body gap-half justify-center txt-xx-large margin-block-half">
|
||||
<%= icon_tag "add" %>
|
||||
|
||||
Reference in New Issue
Block a user