1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Smoother account sync refreshes

This commit is contained in:
Zach Gollwitzer 2025-05-15 09:58:30 -04:00
parent a4eae6a9c7
commit 9027647fa0

View file

@ -6,9 +6,6 @@ class Account::SyncCompleteEvent
end end
def broadcast def broadcast
# Refresh entire account page (only applies if currently viewing this account)
account.broadcast_refresh
# Replace account row in accounts list # Replace account row in accounts list
account.broadcast_replace_to( account.broadcast_replace_to(
account.family, account.family,
@ -32,6 +29,9 @@ class Account::SyncCompleteEvent
unless account.linked? unless account.linked?
account.family.broadcast_sync_complete account.family.broadcast_sync_complete
end end
# Refresh entire account page (only applies if currently viewing this account)
account.broadcast_refresh
end end
private private