Skip to content

Commit

Permalink
Finalize other assets and liabilities view (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll authored Oct 8, 2024
1 parent c397f1b commit 591d149
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/helpers/accounts_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def account_tabs(account)
transactions_tab = { key: "transactions", label: t("accounts.show.transactions"), path: account_path(account, tab: "transactions"), route: account_transactions_path(account) }
trades_tab = { key: "trades", label: t("accounts.show.trades"), path: account_path(account, tab: "trades"), route: account_trades_path(account) }

return [ value_tab ] if account.other_asset? || account.other_liability?
return [ overview_tab, value_tab ] if account.property? || account.vehicle?
return [ holdings_tab, cash_tab, trades_tab ] if account.investment?

Expand Down
2 changes: 1 addition & 1 deletion app/views/accounts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>
<div class="flex items-center gap-3">
<%= button_to sync_account_path(@account), method: :post, class: "flex items-center gap-2", title: "Sync Account" do %>
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-900 hover:text-gray-500" %>
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-500 hover:text-gray-400" %>
<% end %>

<%= contextual_menu do %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/account/valuations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ en:
date: date
new_entry: New entry
no_valuations: No valuations for this account yet
valuations: Value history
valuations: Value
value: value
valuation:
confirm_accept: Delete entry
Expand Down

0 comments on commit 591d149

Please sign in to comment.