lnbits-legend/lnbits/extensions/watchonly/static/components/payment/payment.js

22 lines
421 B
JavaScript
Raw Normal View History

2022-07-25 17:37:06 +03:00
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 () {}
})
}