diff --git a/neode-ui/src/locales/en.json b/neode-ui/src/locales/en.json index 00aeddfd..98b2e15a 100644 --- a/neode-ui/src/locales/en.json +++ b/neode-ui/src/locales/en.json @@ -415,6 +415,7 @@ "totalEarned": "Total Earned", "monthlyAvg": "Monthly Avg", "ecashBalance": "Ecash Balance", + "totalBitcoin": "Total Bitcoin", "onChain": "On-chain", "lightning": "Lightning", "ecash": "Ecash", diff --git a/neode-ui/src/locales/es.json b/neode-ui/src/locales/es.json index f94ff178..3c9dd268 100644 --- a/neode-ui/src/locales/es.json +++ b/neode-ui/src/locales/es.json @@ -413,6 +413,7 @@ "totalEarned": "Total ganado", "monthlyAvg": "Promedio mensual", "ecashBalance": "Saldo Ecash", + "totalBitcoin": "Bitcoin total", "onChain": "On-chain", "lightning": "Lightning", "ecash": "Ecash", diff --git a/neode-ui/src/views/home/HomeWalletCard.vue b/neode-ui/src/views/home/HomeWalletCard.vue index c9c37fbf..e69f83b0 100644 --- a/neode-ui/src/views/home/HomeWalletCard.vue +++ b/neode-ui/src/views/home/HomeWalletCard.vue @@ -112,9 +112,18 @@
-
+
+ {{ t('web5.totalBitcoin') }} +
+ {{ walletTotal.toLocaleString() }} sats +
+
+
+ + + {{ t('web5.onChain') }}
{{ walletOnchain.toLocaleString() }} sats @@ -232,6 +241,10 @@ defineEmits<{ const showIncomingTxPanel = ref(false) +const walletTotal = computed(() => + props.walletOnchain + props.walletLightning + props.walletEcash + props.walletFedimint + (props.walletArk ?? 0) +) + function isOnchain(tx: WalletTransaction): boolean { return !tx.kind || tx.kind === 'onchain' } diff --git a/neode-ui/src/views/web5/Web5Wallet.vue b/neode-ui/src/views/web5/Web5Wallet.vue index 00195014..dc00a514 100644 --- a/neode-ui/src/views/web5/Web5Wallet.vue +++ b/neode-ui/src/views/web5/Web5Wallet.vue @@ -95,10 +95,21 @@
{{ walletError }}
+ +
+
+ + {{ t('web5.totalBitcoin') }} +
+ {{ (lndOnchainBalance + lndChannelBalance + ecashBalance).toLocaleString() }} sats +
+
- + + + {{ t('web5.onChain') }}
{{ lndOnchainBalance.toLocaleString() }} sats