22 lines
518 B
JavaScript
22 lines
518 B
JavaScript
window.app.component('key-pair', {
|
|
name: 'key-pair',
|
|
template: '#key-pair',
|
|
delimiters: ['${', '}'],
|
|
props: ['public-key', 'private-key'],
|
|
data: function () {
|
|
return {
|
|
showPrivateKey: false
|
|
}
|
|
},
|
|
methods: {
|
|
copyText: function (text, message, position) {
|
|
var notify = this.$q.notify
|
|
Quasar.copyToClipboard(text).then(function () {
|
|
notify({
|
|
message: message || 'Copied to clipboard!',
|
|
position: position || 'bottom'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|