Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix(wise): add missing sync button to Wise account group header, matching the pattern already used by Kraken, Plaid, SimpleFIN, and EnableBanking (#3009)

Blaž Dular91a92e9249d4
diff --git a/app/views/wise_items/_wise_item.html.erb b/app/views/wise_items/_wise_item.html.erb
index edd95f580e..29739f8cc6 100644
--- a/app/views/wise_items/_wise_item.html.erb
+++ b/app/views/wise_items/_wise_item.html.erb
@@ -45,6 +45,13 @@
<% if Current.user&.admin? %>
<div class="flex items-center gap-2">
+ <%= icon(
+ "refresh-cw",
+ as_button: true,
+ href: sync_wise_item_path(wise_item),
+ disabled: wise_item.syncing?
+ ) %>
+
<%= render DS::Menu.new do |menu| %>
<% menu.with_item(
variant: "button",