mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
fix: address PR review feedback for generator templates
- Fix invalid Tailwind class bg-gray -> bg-gray-400 in panel template - Fix count_holdings to only count linked accounts for consistency
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 -%>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user