Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit 591d149

Browse files
authored
Finalize other assets and liabilities view (#1264)
1 parent c397f1b commit 591d149

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/helpers/accounts_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def account_tabs(account)
5555
transactions_tab = { key: "transactions", label: t("accounts.show.transactions"), path: account_path(account, tab: "transactions"), route: account_transactions_path(account) }
5656
trades_tab = { key: "trades", label: t("accounts.show.trades"), path: account_path(account, tab: "trades"), route: account_trades_path(account) }
5757

58+
return [ value_tab ] if account.other_asset? || account.other_liability?
5859
return [ overview_tab, value_tab ] if account.property? || account.vehicle?
5960
return [ holdings_tab, cash_tab, trades_tab ] if account.investment?
6061

app/views/accounts/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
<div class="flex items-center gap-3">
1616
<%= button_to sync_account_path(@account), method: :post, class: "flex items-center gap-2", title: "Sync Account" do %>
17-
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-900 hover:text-gray-500" %>
17+
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-500 hover:text-gray-400" %>
1818
<% end %>
1919

2020
<%= contextual_menu do %>

config/locales/views/account/valuations/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ en:
1111
date: date
1212
new_entry: New entry
1313
no_valuations: No valuations for this account yet
14-
valuations: Value history
14+
valuations: Value
1515
value: value
1616
valuation:
1717
confirm_accept: Delete entry

0 commit comments

Comments
 (0)