The personal finance app for everyone
Limit transaction editing for crypto accounts
Zach Gollwitzerfcb95207d700
diff --git a/app/views/account/entries/index.html.erb b/app/views/account/entries/index.html.erbindex 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 %></div></div>diff --git a/app/views/accounts/show/_menu.html.erb b/app/views/accounts/show/_menu.html.erbindex 1c601032..5d9efa44 100644--- a/app/views/accounts/show/_menu.html.erb+++ b/app/views/accounts/show/_menu.html.erb@@ -19,12 +19,14 @@<span><%= t(".edit") %></span><% 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" %>- <span><%= t(".import") %></span>+ <span><%= t(".import") %></span>+ <% end %><% end %><%= button_to account_path(account),diff --git a/config/currencies.yml b/config/currencies.ymlindex 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: 8btc:name: Bitcoinpriority: 100