mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
Smoother account sync refreshes
This commit is contained in:
parent
a4eae6a9c7
commit
9027647fa0
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,6 @@ class Account::SyncCompleteEvent
|
|||
end
|
||||
|
||||
def broadcast
|
||||
# Refresh entire account page (only applies if currently viewing this account)
|
||||
account.broadcast_refresh
|
||||
|
||||
# Replace account row in accounts list
|
||||
account.broadcast_replace_to(
|
||||
account.family,
|
||||
|
@ -32,6 +29,9 @@ class Account::SyncCompleteEvent
|
|||
unless account.linked?
|
||||
account.family.broadcast_sync_complete
|
||||
end
|
||||
|
||||
# Refresh entire account page (only applies if currently viewing this account)
|
||||
account.broadcast_refresh
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue