feat: show merchant keypair
This commit is contained in:
parent
f5bb3af1aa
commit
f568b1b927
4 changed files with 94 additions and 3 deletions
25
static/components/key-pair/key-pair.js
Normal file
25
static/components/key-pair/key-pair.js
Normal 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'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue