nostrrelay/static/components/relay-details/relay-details.js
2023-02-06 14:03:15 +02:00

31 lines
573 B
JavaScript

async function relayDetails(path) {
const template = await loadTemplateAsync(path)
Vue.component('relay-details', {
name: 'relay-details',
template,
props: [],
data: function () {
return {
items: [],
formDialogItem: {
show: false,
data: {
name: '',
description: ''
}
}
}
},
methods: {
satBtc(val, showUnit = true) {
return satOrBtc(val, showUnit, this.satsDenominated)
},
},
created: async function () {
}
})
}