UI tweaks

This commit is contained in:
sairaj mote 2021-09-20 19:43:07 +05:30
parent 22fdac08b8
commit 316587c9a1

View File

@ -543,7 +543,7 @@
<div id="result__icon"></div> <div id="result__icon"></div>
<h4 id="result__title"></h4> <h4 id="result__title"></h4>
<p id="result__description"></p> <p id="result__description"></p>
<a id="result__back_button" href="" class="button">Done</a> <a id="result__back_button" href="#/home/dashboard" class="button">Done</a>
</section> </section>
</article> </article>
<article id="transaction" class="page hide-completely page-layout"> <article id="transaction" class="page hide-completely page-layout">
@ -1725,7 +1725,6 @@
const { type, amount, status, reason = '' } = details const { type, amount, status, reason = '' } = details
getRef('result__icon').innerHTML = utils.getRelatedIcon(status) getRef('result__icon').innerHTML = utils.getRelatedIcon(status)
getRef('result__icon').className = status getRef('result__icon').className = status
getRef('result__back_button').href = `#/${type}`
switch (status) { switch (status) {
case 'pending': case 'pending':
getRef('result__title').textContent = `Sent ${type} request` getRef('result__title').textContent = `Sent ${type} request`
@ -12212,8 +12211,8 @@
//check for validity of loan (ie, check if enough deposit is present) //check for validity of loan (ie, check if enough deposit is present)
let user = this.getUserDetails(myFloID) let user = this.getUserDetails(myFloID)
if (user.netTotal <= amount) { if (user.netTotal <= amount) {
if (user.depositTotal) { if (user.netTotal) {
reject(`Deposit insufficient! Max eligible loan amount: ${user.depositTotal.toLocaleString(`en-IN`, { style: 'currency', currency: 'INR' })}`); reject(`Deposit insufficient! Max eligible loan amount: ${user.netTotal.toLocaleString(`en-IN`, { style: 'currency', currency: 'INR' })}`);
} else { } else {
reject(`Deposit insufficient! Please make a deposit first greater than ${amount.toLocaleString(`en-IN`, { style: 'currency', currency: 'INR' })} to take loan.`); reject(`Deposit insufficient! Please make a deposit first greater than ${amount.toLocaleString(`en-IN`, { style: 'currency', currency: 'INR' })} to take loan.`);
} }