feat: show merchant keypair

This commit is contained in:
Vlad Stan 2023-02-28 12:21:34 +02:00
parent f5bb3af1aa
commit f568b1b927
4 changed files with 94 additions and 3 deletions

View file

@ -0,0 +1,25 @@
async function keyPair(path) {
const template = await loadTemplateAsync(path)
Vue.component('key-pair', {
name: 'key-pair',
template,
props: ['public-key', 'private-key'],
data: function () {
return {
showPrivateKey: false
}
},
methods: {
copyText: function (text, message, position) {
var notify = this.$q.notify
Quasar.utils.copyToClipboard(text).then(function () {
notify({
message: message || 'Copied to clipboard!',
position: position || 'bottom'
})
})
}
}
})
}