diff --git a/frontend/src/components/layout/AppLayout.vue b/frontend/src/components/layout/AppLayout.vue index fd7092c..42a6104 100644 --- a/frontend/src/components/layout/AppLayout.vue +++ b/frontend/src/components/layout/AppLayout.vue @@ -159,6 +159,8 @@ const navItems = [ function isNavActive(navRoute: string) { if (route.path === navRoute) return true + // Highlight parent nav for sub-routes (e.g. /loans/:id highlights Loans) + if (navRoute !== '/' && route.path.startsWith(navRoute + '/')) return true // Highlight "Transactions" when viewing account-scoped transactions if (navRoute === '/transactions' && route.name === 'account-transactions') return true return false diff --git a/frontend/src/views/loans/LoansView.vue b/frontend/src/views/loans/LoansView.vue index a7e70e4..4adc79b 100644 --- a/frontend/src/views/loans/LoansView.vue +++ b/frontend/src/views/loans/LoansView.vue @@ -18,7 +18,7 @@
Balance - {{ formatCurrency(account.balance) }} + {{ formatCurrency(Math.abs(account.balance)) }}
Interest Rate @@ -69,7 +69,11 @@
Current Balance
-
{{ formatCurrency(loanDetail.currentBalance) }}
+
{{ formatCurrency(Math.abs(loanDetail.currentBalance)) }}
+
+ +
Est. Payoff Amount
+
{{ formatCurrency(payoffAmount) }}
Interest Rate
@@ -250,7 +254,7 @@