mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-26 07:31:22 +01:00
22 lines
421 B
JavaScript
22 lines
421 B
JavaScript
|
async function payment(path) {
|
||
|
const template = await loadTemplateAsync(path)
|
||
|
Vue.component('payment', {
|
||
|
name: 'payment',
|
||
|
template,
|
||
|
|
||
|
props: ['mempool_endpoint', 'sats_denominated'],
|
||
|
|
||
|
data: function () {
|
||
|
return {}
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
satBtc(val, showUnit = true) {
|
||
|
return satOrBtc(val, showUnit, this['sats_denominated'])
|
||
|
}
|
||
|
},
|
||
|
|
||
|
created: async function () {}
|
||
|
})
|
||
|
}
|