diff --git a/app/views/account/entries/index.html.erb b/app/views/account/entries/index.html.erb index e501a0cf..9e6d5d42 100644 --- a/app/views/account/entries/index.html.erb +++ b/app/views/account/entries/index.html.erb @@ -14,9 +14,11 @@ <%= tag.span t(".new_balance"), class: "text-sm" %> <% end %> - <%= link_to @account.investment? ? new_account_trade_path(@account) : new_transaction_path(account_id: @account.id), data: { turbo_frame: :modal }, class: "block p-2 rounded-lg hover:bg-gray-50 flex items-center gap-2" do %> - <%= lucide_icon("credit-card", class: "text-gray-500 w-5 h-5") %> - <%= tag.span t(".new_transaction"), class: "text-sm" %> + <% unless @account.crypto? %> + <%= link_to @account.investment? ? new_account_trade_path(@account) : new_transaction_path(account_id: @account.id), data: { turbo_frame: :modal }, class: "block p-2 rounded-lg hover:bg-gray-50 flex items-center gap-2" do %> + <%= lucide_icon("credit-card", class: "text-gray-500 w-5 h-5") %> + <%= tag.span t(".new_transaction"), class: "text-sm" %> + <% end %> <% end %> diff --git a/app/views/accounts/show/_menu.html.erb b/app/views/accounts/show/_menu.html.erb index 1c601032..5d9efa44 100644 --- a/app/views/accounts/show/_menu.html.erb +++ b/app/views/accounts/show/_menu.html.erb @@ -19,12 +19,14 @@ <%= t(".edit") %> <% end %> - <%= link_to new_import_path, + <% unless account.crypto? %> + <%= link_to new_import_path, data: { turbo_frame: :modal }, class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg" do %> - <%= lucide_icon "download", class: "w-5 h-5 text-gray-500" %> + <%= lucide_icon "download", class: "w-5 h-5 text-gray-500" %> - <%= t(".import") %> + <%= t(".import") %> + <% end %> <% end %> <%= button_to account_path(account), diff --git a/config/currencies.yml b/config/currencies.yml index 97f10d42..07d80c39 100644 --- a/config/currencies.yml +++ b/config/currencies.yml @@ -866,20 +866,6 @@ zmw: delimiter: "," default_format: "%u%n" default_precision: 2 -bch: - name: Bitcoin Cash - priority: 100 - iso_code: BCH - iso_numeric: "" - html_code: "₿" - symbol: "₿" - minor_unit: Satoshi - minor_unit_conversion: 100000000 - smallest_denomination: 1 - separator: "." - delimiter: "," - default_format: "%n %u" - default_precision: 8 btc: name: Bitcoin priority: 100