From c8caed27ac02cca093ee4fd482a6aa5d692f8beb Mon Sep 17 00:00:00 2001 From: Immanuel Onyeka Date: Thu, 29 Jun 2023 17:17:08 -0400 Subject: [PATCH] Display summary pane before generation --- components/new/new.vue | 10 ++++++--- components/new/summary.vue | 46 +++++++++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/components/new/new.vue b/components/new/new.vue index 141c660..fa89345 100644 --- a/components/new/new.vue +++ b/components/new/new.vue @@ -50,7 +50,10 @@ class="bi bi-plus" viewBox="0 0 16 16"> loans[sel].tax = t" @continue="generate" /> - + @@ -58,7 +61,7 @@ class="bi bi-plus" viewBox="0 0 16 16"> { if (fee.perc) fee.amount = (fee.perc / 100 * value).toFixed(2) }) + this.estimate.loans.forEach(l => {l.ltv = 0; l.amount = 0}) } @@ -190,7 +194,7 @@ function generate() { // Percentage values of fees always takek precedent over amounts. The conversion // happens in setPrice() export default { - components: { Summary, LoanDetails }, + components: { LoanSummary, LoanDetails }, methods: { generate, createFees, del, create, setPrice, setLtv, setAmount, setDti, setHousingDti diff --git a/components/new/summary.vue b/components/new/summary.vue index 17a6529..a5a9d5d 100644 --- a/components/new/summary.vue +++ b/components/new/summary.vue @@ -1,5 +1,49 @@ -