1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Sort accounts in the sidebar (#815)

This commit is contained in:
Jakub Kottnauer 2024-05-28 19:22:04 +02:00 committed by GitHub
parent 981a1cb2ee
commit 6182a62573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@
</div>
</div>
</summary>
<% group.children.each do |account_value_node| %>
<% group.children.sort_by(&:name).each do |account_value_node| %>
<% account = account_value_node.original %>
<%= link_to account_path(account), class: "flex items-center w-full gap-3 px-3 py-2 mb-1 hover:bg-gray-100 rounded-[10px]" do %>
<%= image_tag account_logo_url(account), class: "w-6 h-6" %>