diff --git a/static/js/index.js b/static/js/index.js index d36528b..04ca64e 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -7,7 +7,8 @@ window.app = Vue.createApp({ dashboardData: null, transactions: [], loading: true, - error: null + error: null, + showFiatValues: false // Hide fiat values by default } }, diff --git a/templates/satmachineclient/index.html b/templates/satmachineclient/index.html index b0d9cd9..b0272f8 100644 --- a/templates/satmachineclient/index.html +++ b/templates/satmachineclient/index.html @@ -57,8 +57,23 @@ - -
+ +
+
+ + ${showFiatValues ? 'Hide' : 'Show'} Fiat Values + +
+
+ + +
@@ -76,7 +91,7 @@ ${formatCurrencyWithCode((dashboardData.current_sats_fiat_value + dashboardData.current_fiat_balance) - dashboardData.total_fiat_invested, dashboardData.currency)}
- ${(dashboardData.current_sats_fiat_value + dashboardData.current_fiat_balance) > dashboardData.total_fiat_invested ? 'Unrealized Gain' : 'Unrealized Loss'} + ${(dashboardData.current_sats_fiat_value + dashboardData.current_fiat_balance) > dashboardData.total_fiat_invested ? 'Bitcoin Appreciation vs Fiat' : 'Fiat Depreciation vs Bitcoin'}
vs total invested