Support trees in the Equity view

This commit is contained in:
2026-09-27 12:32:30 +02:00
parent 4a1b029863
commit 817b121ca4
9 changed files with 153 additions and 91 deletions
@@ -174,15 +174,23 @@ export default class HledgerDashboard extends Component {
</tr>
</thead>
<tbody>
{{#each group.holders as |holder|}}
{{#each group.rows as |row|}}
<tr>
<td>{{holder.holder}}</td>
<td
class={{dConcatClass
"hledger-dashboard__account"
(this.depthClass row.depth)
}}
title={{row.account}}
>
{{row.label}}
</td>
<td class="hledger-dashboard__amount">{{this.amountText
row.amounts
}}</td>
<td
class="hledger-dashboard__amount"
>{{holder.amount.display}}</td>
<td
class="hledger-dashboard__amount"
>{{holder.percentage}}%</td>
>{{row.percentage}}%</td>
</tr>
{{/each}}
<tr class="hledger-dashboard__total">