1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-03 04:25:21 +02:00

Add post-sync UI stream updates (#1482)
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

* 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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 35 additions and 8 deletions

View file

@ -1,11 +1,11 @@
<%# locals: (account:, title: nil, tooltip: nil) %>
<%# locals: (account:, title: nil, tooltip: nil, **args) %>
<% period = Period.from_param(params[:period]) %>
<% series = account.series(period: period) %>
<% trend = series.trend %>
<% default_value_title = account.asset? ? t(".balance") : t(".owed") %>
<div class="bg-white shadow-xs rounded-xl border border-alpha-black-25 rounded-lg">
<div id="<%= dom_id(account, :chart) %>" class="bg-white shadow-xs rounded-xl border border-alpha-black-25 rounded-lg">
<div class="p-4 flex justify-between">
<div class="space-y-2">
<div class="flex items-center gap-1">

View file

@ -21,7 +21,7 @@
<div class="flex items-center gap-3 ml-auto">
<% unless account.plaid_account_id.present? %>
<%= button_to sync_account_path(account), disabled: account.syncing?, class: "flex items-center gap-2", title: "Sync Account" do %>
<%= button_to sync_account_path(account), disabled: account.syncing?, data: { turbo: false }, class: "flex items-center gap-2", title: "Sync Account" do %>
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-500 hover:text-gray-400" %>
<% end %>
<% end %>