Skip to content

Commit 039ae79

Browse files
Merge pull request #164 from briandadams85/feature/accordion-timeframe-indicators
feat(ynab): add timeframe indicators to accordion titles
2 parents 1feb31a + ea2d78b commit 039ae79

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/app/forecasting/input/ynab/ynab.component.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,10 @@ <h4>How we pull these numbers from YNAB</h4>
382382
<h2 ngbAccordionHeader>
383383
<button ngbAccordionButton>
384384
<span class="float-start">Contributions</span>
385-
<span class="ms-auto">{{
386-
budgetForm.value.monthlyContribution | currency : currencyIsoCode
387-
}}</span>
385+
<span class="ms-auto text-end">
386+
{{ budgetForm.value.monthlyContribution * 12 | currency : currencyIsoCode }} per year
387+
<small class="opacity-75 d-block mt-1">{{ budgetForm.value.monthlyContribution | currency : currencyIsoCode }} per month</small>
388+
</span>
388389
</button>
389390
</h2>
390391

@@ -519,9 +520,10 @@ <h4>How we pull these numbers from YNAB</h4>
519520
<h2 ngbAccordionHeader>
520521
<button ngbAccordionButton>
521522
<span class="float-start">Expenses</span>
522-
<span class="ms-auto">
523-
{{ expenses.fi.annual | currency : currencyIsoCode }}</span
524-
>
523+
<span class="ms-auto text-end">
524+
{{ expenses.fi.annual | currency : currencyIsoCode }} per year
525+
<small class="opacity-75 d-block mt-1">{{ expenses.fi.monthly | currency : currencyIsoCode }} per month</small>
526+
</span>
525527
</button>
526528
</h2>
527529
<div ngbAccordionCollapse>

0 commit comments

Comments
 (0)