From 7841e52b454b478e1aac9332b83987bd6840bf95 Mon Sep 17 00:00:00 2001 From: Robbert Coeckelbergh Date: Sat, 25 Feb 2023 16:10:22 +0100 Subject: [PATCH] feat(fire): scale fire chart according to retirement date - If target net worth is filled in, display retirement date and update the scale of the chart - If target net worth is not filled in, display total amount and use investment horizon - Add translations --- apps/client/src/locales/messages.de.xlf | 16 +++++++ apps/client/src/locales/messages.nl.xlf | 16 +++++++ apps/client/src/locales/messages.xlf | 14 +++++++ .../fire-calculator.component.html | 14 ++++--- .../fire-calculator.component.ts | 42 +++++++++++-------- 5 files changed, 78 insertions(+), 24 deletions(-) diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlf index 6e3c50bcf..2029f0021 100644 --- a/apps/client/src/locales/messages.de.xlf +++ b/apps/client/src/locales/messages.de.xlf @@ -3505,6 +3505,22 @@ 199,201 + + Target Net Worth + Angestrebtes Nettovermögen + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 38 + + + + Retirement Date + Pensionierungsdatum + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 65 + + diff --git a/apps/client/src/locales/messages.nl.xlf b/apps/client/src/locales/messages.nl.xlf index 2102f633c..47f216f83 100644 --- a/apps/client/src/locales/messages.nl.xlf +++ b/apps/client/src/locales/messages.nl.xlf @@ -3505,6 +3505,22 @@ 199,201 + + Target Net Worth + Beoogd Netto Vermogen + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 38 + + + + Retirement Date + Pensioen Datum + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 65 + + diff --git a/apps/client/src/locales/messages.xlf b/apps/client/src/locales/messages.xlf index d6b01fb19..e2537f330 100644 --- a/apps/client/src/locales/messages.xlf +++ b/apps/client/src/locales/messages.xlf @@ -3146,6 +3146,20 @@ 199,201 + + Target Net Worth + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 38 + + + + Retirement Date + + libs/ui/src/lib/fire-calculator/fire-calculator.component.html + 65 + + diff --git a/libs/ui/src/lib/fire-calculator/fire-calculator.component.html b/libs/ui/src/lib/fire-calculator/fire-calculator.component.html index 1ff2d4660..0e9d44291 100644 --- a/libs/ui/src/lib/fire-calculator/fire-calculator.component.html +++ b/libs/ui/src/lib/fire-calculator/fire-calculator.component.html @@ -17,12 +17,6 @@ {{ currency }} - - Investment Horizon - - years - - Annual Interest Rate
%
+ + + Investment Horizon + + years + + Target Net Worth