1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00

Update empty account states on dashboard (#1166)

* Update empty account states on dashboard

* Translations
This commit is contained in:
Zach Gollwitzer 2024-09-10 17:17:10 -04:00 committed by GitHub
parent 04037b8943
commit ac0ff35360
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 134 additions and 134 deletions

View file

@ -57,11 +57,6 @@ module ApplicationHelper
render partial: "shared/drawer", locals: { content: content }
end
def account_groups(period: nil)
assets, liabilities = Current.family.accounts.by_group(currency: Current.family.currency, period: period || Period.last_30_days).values_at(:assets, :liabilities)
[ assets.children, liabilities.children ].flatten
end
def sidebar_link_to(name, path, options = {})
is_current = current_page?(path) || (request.path.start_with?(path) && path != "/")