mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-15 06:02:46 +02:00
parent
d1ae531750
commit
bb4dd4fe35
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
@ -164,11 +164,11 @@ Vue.component('payment-list', {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
formatCurrency: function (currency, amount) {
|
formatCurrency: function (amount, currency) {
|
||||||
try {
|
try {
|
||||||
return LNbits.utils.formatCurrency(currency, amount)
|
return LNbits.utils.formatCurrency(amount, currency)
|
||||||
} catch (error) {
|
} catch (e) {
|
||||||
console.warn(error)
|
console.error(e)
|
||||||
return `${amount} ???`
|
return `${amount} ???`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -295,22 +295,22 @@ Vue.component('payment-list', {
|
|||||||
key="amount"
|
key="amount"
|
||||||
v-if="denomination != 'sats'"
|
v-if="denomination != 'sats'"
|
||||||
:props="props"
|
:props="props"
|
||||||
class="lol1"
|
class="col1"
|
||||||
v-text="parseFloat(String(props.row.fsat).replaceAll(',', '')) / 100"
|
v-text="parseFloat(String(props.row.fsat).replaceAll(',', '')) / 100"
|
||||||
>
|
>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td class="lol2" auto-width key="amount" v-else :props="props">
|
<q-td class="col2" auto-width key="amount" v-else :props="props">
|
||||||
<span v-text="props.row.fsat"></span>
|
<span v-text="props.row.fsat"></span>
|
||||||
<br />
|
<br />
|
||||||
<i v-if="props.row.extra.wallet_fiat_currency">
|
<i v-if="props.row.extra.wallet_fiat_currency">
|
||||||
<span
|
<span
|
||||||
v-text="formatCurrency(props.row.extra.wallet_fiat_currency, props.row.extra.wallet_fiat_amount)"
|
v-text="formatCurrency(props.row.extra.wallet_fiat_amount, props.row.extra.wallet_fiat_currency)"
|
||||||
></span>
|
></span>
|
||||||
<br />
|
<br />
|
||||||
</i>
|
</i>
|
||||||
<i v-if="props.row.extra.fiat_currency">
|
<i v-if="props.row.extra.fiat_currency">
|
||||||
<span
|
<span
|
||||||
v-text="formatCurrency(props.row.extra.fiat_currency, props.row.extra.fiat_amount)"
|
v-text="formatCurrency(props.row.extra.fiat_amount, props.row.extra.fiat_currency)"
|
||||||
></span>
|
></span>
|
||||||
</i>
|
</i>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user