When adding a card out of context, default to most recently accessed collection
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
<header class="header margin-block-end" style="--header-button-count: 3;">
|
||||
<div class="header__actions header__actions--start">
|
||||
<% if collection = @filter.single_collection || Current.user.collections.first %>
|
||||
<% if collection = @filter.single_collection || Current.user.collections.ordered_by_recently_accessed.first %>
|
||||
<%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link btn--circle-mobile" do %>
|
||||
<%= icon_tag "add" %>
|
||||
<span>Add a card</span>
|
||||
|
||||
Reference in New Issue
Block a user