mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 17:19:39 +02:00
Limit transaction editing for crypto accounts
This commit is contained in:
parent
743e291d56
commit
fcb95207d7
3 changed files with 10 additions and 20 deletions
|
@ -14,10 +14,12 @@
|
||||||
<%= tag.span t(".new_balance"), class: "text-sm" %>
|
<%= tag.span t(".new_balance"), class: "text-sm" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% 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 %>
|
<%= 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") %>
|
<%= lucide_icon("credit-card", class: "text-gray-500 w-5 h-5") %>
|
||||||
<%= tag.span t(".new_transaction"), class: "text-sm" %>
|
<%= tag.span t(".new_transaction"), class: "text-sm" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<span><%= t(".edit") %></span>
|
<span><%= t(".edit") %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% unless account.crypto? %>
|
||||||
<%= link_to new_import_path,
|
<%= link_to new_import_path,
|
||||||
data: { turbo_frame: :modal },
|
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 %>
|
class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg" do %>
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
|
|
||||||
<span><%= t(".import") %></span>
|
<span><%= t(".import") %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= button_to account_path(account),
|
<%= button_to account_path(account),
|
||||||
method: :delete,
|
method: :delete,
|
||||||
|
|
|
@ -866,20 +866,6 @@ zmw:
|
||||||
delimiter: ","
|
delimiter: ","
|
||||||
default_format: "%u%n"
|
default_format: "%u%n"
|
||||||
default_precision: 2
|
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:
|
btc:
|
||||||
name: Bitcoin
|
name: Bitcoin
|
||||||
priority: 100
|
priority: 100
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue