Fix selected account and Transaction/Transfer Tabs changes (#1220)

* Fix Dialog selected attribute had no effect

* Fix New Transaction/Transfer Dialog

* Update transfers_controller.rb

---------

Co-authored-by: sokiee <sokysrm@gmail.com>
This commit is contained in:
Yacine Kanzari
2026-03-24 20:36:03 +01:00
committed by GitHub
parent fc987ededb
commit b78944ed6f
4 changed files with 9 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
<% end %>
<% end %>
<%= link_to new_transfer_path,
<%= link_to new_transfer_path(from_account_id: account_id),
data: { turbo_frame: :modal },
class: "flex-1 min-w-0 flex px-4 py-1 rounded-lg items-center space-x-2 justify-center text-sm #{active_tab == 'transfer' ? 'bg-container text-primary shadow-sm' : 'hover:bg-container text-subdued hover:text-primary hover:shadow-sm'}" do %>
<%= icon "arrow-right-left" %>