Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix: address PR review feedback for generator templates

luckyPipewrench4909532a087e
diff --git a/lib/generators/provider/family/templates/panel.html.erb.tt b/lib/generators/provider/family/templates/panel.html.erb.tt
index 17433f3184..49611723e1 100644
--- a/lib/generators/provider/family/templates/panel.html.erb.tt
+++ b/lib/generators/provider/family/templates/panel.html.erb.tt
@@ -65,7 +65,7 @@
<div class="w-2 h-2 bg-success rounded-full"></div>
<p class="text-sm text-secondary"><%= "<" + "%= t(\"#{file_name}_items.panel.status_configured_html\", accounts_path: accounts_path).html_safe %" + ">" %></p>
<%= "<" + "% else %" + ">" %>
- <div class="w-2 h-2 bg-gray rounded-full"></div>
+ <div class="w-2 h-2 bg-gray-400 rounded-full"></div>
<p class="text-sm text-secondary"><%= "<" + "%= t(\"#{file_name}_items.panel.status_not_configured\") %" + ">" %></p>
<%= "<" + "% end %" + ">" %>
</div>
diff --git a/lib/generators/provider/family/templates/syncer.rb.tt b/lib/generators/provider/family/templates/syncer.rb.tt
index 67979b538e..5dbc604141 100644
--- a/lib/generators/provider/family/templates/syncer.rb.tt
+++ b/lib/generators/provider/family/templates/syncer.rb.tt
@@ -65,7 +65,7 @@ class <%= class_name %>Item::Syncer
<% if investment_provider? -%>
def count_holdings
- <%= file_name %>_item.<%= file_name %>_accounts.sum { |pa| Array(pa.raw_holdings_payload).size }
+ <%= file_name %>_item.linked_<%= file_name %>_accounts.sum { |pa| Array(pa.raw_holdings_payload).size }
end
<% end -%>