mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
fix(simplefin): Disabled accounts are now included and hides transaction uploads
This commit is contained in:
parent
72c6840f5a
commit
d78724b9a8
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
<%= render MenuComponent.new(testid: "account-menu") do |menu| %>
|
<%= render MenuComponent.new(testid: "account-menu") do |menu| %>
|
||||||
<% menu.with_item(variant: "link", text: "Edit", href: edit_account_path(account), icon: "pencil-line", data: { turbo_frame: :modal }) %>
|
<% menu.with_item(variant: "link", text: "Edit", href: edit_account_path(account), icon: "pencil-line", data: { turbo_frame: :modal }) %>
|
||||||
|
|
||||||
<% unless account.crypto? %>
|
<% unless (account.crypto? || account.simple_fin_account) %>
|
||||||
<% menu.with_item(
|
<% menu.with_item(
|
||||||
variant: "link",
|
variant: "link",
|
||||||
text: "Import transactions",
|
text: "Import transactions",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul role="list" class="divide-y divide-gray-200">
|
<ul role="list" class="divide-y divide-gray-200">
|
||||||
<% simple_fin_item.accounts.includes(:accountable, :logo_attachment).active.alphabetically.each do |account| %>
|
<% simple_fin_item.accounts.includes(:accountable, :logo_attachment).alphabetically.each do |account| %>
|
||||||
<%= render "accounts/account", account: account %>
|
<%= render "accounts/account", account: account %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue