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

29 lines
560 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 () {}
})
}