Add post-sync UI stream updates (#1482)

* Add post-sync UI stream updates

* Fix stream channel id
This commit is contained in:
Zach Gollwitzer
2024-11-20 16:46:06 -05:00
committed by GitHub
parent e641cfccd4
commit 6996a225ba
9 changed files with 35 additions and 8 deletions

View File

@@ -33,4 +33,15 @@ module Accountable
rescue Money::ConversionError
TimeSeries.new([])
end
def post_sync
broadcast_remove_to(account, target: "syncing-notification")
broadcast_replace_to(
account,
target: "chart_account_#{account.id}",
partial: "accounts/show/chart",
locals: { account: account }
)
end
end