mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +02:00
fix: Correcting some issues from merging master
This commit is contained in:
parent
676c609725
commit
bf4ee058ec
2 changed files with 3 additions and 13 deletions
|
@ -49,7 +49,6 @@ class SimpleFinAccount < ApplicationRecord
|
||||||
accountable: TYPE_MAPPING[sf_account_data["type"]].new,
|
accountable: TYPE_MAPPING[sf_account_data["type"]].new,
|
||||||
subtype: sf_account_data["subtype"],
|
subtype: sf_account_data["subtype"],
|
||||||
simple_fin_account: sfa, # Explicitly associate back
|
simple_fin_account: sfa, # Explicitly associate back
|
||||||
last_synced_at: Time.current, # Mark as synced upon creation
|
|
||||||
# Set cash_balance similar to how Account.create_and_sync might
|
# Set cash_balance similar to how Account.create_and_sync might
|
||||||
cash_balance: sfa.available_balance
|
cash_balance: sfa.available_balance
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="flex items-center gap-1 ml-auto">
|
<div class="flex items-center gap-1 ml-auto">
|
||||||
<% if Rails.env.development? %>
|
<% if Rails.env.development? && account.plaid_account %>
|
||||||
<%= icon(
|
<%= icon(
|
||||||
"refresh-cw",
|
"refresh-cw",
|
||||||
as_button: true,
|
as_button: true,
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
frame: :_top,
|
frame: :_top,
|
||||||
title: "Refresh all SimpleFIN accounts"
|
title: "Refresh all SimpleFIN accounts"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% elsif account.simple_fin_account_id.present? %>
|
<% if account.simple_fin_account_id.present? %>
|
||||||
<%= image_tag "simple-fin-logo.svg", class: "h-6 w-auto", title: "Connected via SimpleFIN. This account will auto refresh." %>
|
<%= image_tag "simple-fin-logo.svg", class: "h-6 w-auto", title: "Connected via SimpleFIN. This account will auto refresh." %>
|
||||||
<%= render "accounts/account_error", account: account, link_to_path: "https://beta-bridge.simplefin.org/my-account", given_title: "This account has issues in SimpleFIN bridge. Update it and then re-sync.", target: :_blank %>
|
<%= render "accounts/account_error", account: account, link_to_path: "https://beta-bridge.simplefin.org/my-account", given_title: "This account has issues in SimpleFIN bridge. Update it and then re-sync.", target: :_blank %>
|
||||||
<%# Re sync button. Will sync all SimpleFIN accounts %>
|
<%# Re sync button. Will sync all SimpleFIN accounts %>
|
||||||
|
@ -51,15 +51,6 @@
|
||||||
disabled: account.syncing?,
|
disabled: account.syncing?,
|
||||||
frame: :_top
|
frame: :_top
|
||||||
) %>
|
) %>
|
||||||
<% else %>
|
|
||||||
<%= icon(
|
|
||||||
"refresh-cw",
|
|
||||||
as_button: true,
|
|
||||||
size: "sm",
|
|
||||||
href: sync_account_path(account),
|
|
||||||
disabled: account.syncing?,
|
|
||||||
frame: :_top
|
|
||||||
) %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "accounts/show/menu", account: account %>
|
<%= render "accounts/show/menu", account: account %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue