minor UI update
This commit is contained in:
parent
c4c4ae2d1e
commit
c5268e5ab1
@ -801,6 +801,7 @@ ul {
|
||||
.wallet-action,
|
||||
.integrated-action-button {
|
||||
color: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wallet-action .icon:first-of-type,
|
||||
.integrated-action-button .icon:first-of-type {
|
||||
|
||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -748,6 +748,7 @@ ul {
|
||||
.wallet-action,
|
||||
.integrated-action-button {
|
||||
color: inherit;
|
||||
font-weight: 500;
|
||||
.icon:first-of-type {
|
||||
height: 2.5rem;
|
||||
width: 2.5rem;
|
||||
|
||||
@ -885,7 +885,7 @@
|
||||
<div id="withdraw_wallet_process">
|
||||
<sm-form>
|
||||
<div class="grid gap-0-5">
|
||||
<h4>Transfer to bank</h4>
|
||||
<h4>Withdraw</h4>
|
||||
<p>Money will be sent to your bank account linked to selected UPI ID</p>
|
||||
</div>
|
||||
<sm-input id="send_cashier_amount" type="number" min="1" error-text="Amount should al least be ₹1"
|
||||
|
||||
@ -477,7 +477,7 @@ const render = {
|
||||
walletRequestCard(details) {
|
||||
const { time, message: { mode, amount }, note, tag, vectorClock } = details;
|
||||
const clone = getRef('wallet_request_template').content.cloneNode(true).firstElementChild.firstElementChild;
|
||||
const type = mode === 'cash-to-token' ? 'Wallet top-up' : 'Transfer to bank';
|
||||
const type = mode === 'cash-to-token' ? 'Wallet top-up' : 'Withdraw';
|
||||
let status = tag ? tag : (note ? 'REJECTED' : "PENDING");
|
||||
clone.classList.add(status.toLowerCase());
|
||||
clone.classList.add(mode === 'cash-to-token' ? 'added' : 'withdrawn');
|
||||
|
||||
@ -450,7 +450,7 @@ async function showPage(targetPage, options = {}) {
|
||||
transactionDetails = User.cashierRequests[params.transactionId]
|
||||
const { message: { amount, mode, upi_id, upi_txid }, note, tag } = transactionDetails
|
||||
status = tag ? tag : (note ? 'REJECTED' : "PENDING");
|
||||
getRef('transaction__type').textContent = mode === 'cash-to-token' ? 'Wallet top-up' : 'Transfer to bank';
|
||||
getRef('transaction__type').textContent = mode === 'cash-to-token' ? 'Wallet top-up' : 'Withdraw';
|
||||
if (status === 'COMPLETED') {
|
||||
getRef('transaction__link').href = `https://flosight.duckdns.org/tx/${note}`
|
||||
getRef('transaction__link').classList.remove('hide')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user