mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Add post-sync UI stream updates (#1482)
* Add post-sync UI stream updates * Fix stream channel id
This commit is contained in:
parent
e641cfccd4
commit
6996a225ba
9 changed files with 35 additions and 8 deletions
|
@ -54,4 +54,15 @@ class Investment < ApplicationRecord
|
|||
def icon
|
||||
"line-chart"
|
||||
end
|
||||
|
||||
def post_sync
|
||||
broadcast_remove_to(account, target: "syncing-notification")
|
||||
|
||||
broadcast_replace_to(
|
||||
account,
|
||||
target: "chart_account_#{account.id}",
|
||||
partial: account.plaid_account_id.present? ? "investments/chart" : "accounts/show/chart",
|
||||
locals: { account: account }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue