refactor: use utils.copytext (#3590)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -700,7 +700,7 @@ window.app.component('lnbits-node-qrcode', {
|
||||
dense
|
||||
unelevated
|
||||
size="md"
|
||||
@click="copyText(info.id)"
|
||||
@click="utils.copyText(info.id)"
|
||||
>Public Key<q-tooltip> Click to copy </q-tooltip>
|
||||
</q-btn>
|
||||
</q-card-actions>
|
||||
@@ -781,7 +781,7 @@ window.app.component('lnbits-node-info', {
|
||||
flat
|
||||
dense
|
||||
icon='content_paste'
|
||||
@click='copyText(info.id)'
|
||||
@click='utils.copyText(info.id)'
|
||||
></q-btn>
|
||||
<q-btn
|
||||
size='xs'
|
||||
|
||||
@@ -43,7 +43,7 @@ window.app.component('lnbits-qrcode', {
|
||||
methods: {
|
||||
clickQrCode(event) {
|
||||
if (this.href === '') {
|
||||
this.copyText(this.value)
|
||||
this.utils.copyText(this.value)
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
return false
|
||||
|
||||
@@ -607,7 +607,7 @@ window.PageAccount = {
|
||||
},
|
||||
copyAssetLinkToClipboard(asset) {
|
||||
const assetUrl = `${window.location.origin}/api/v1/assets/${asset.id}/binary`
|
||||
this.copyText(assetUrl)
|
||||
this.utils.copyText(assetUrl)
|
||||
},
|
||||
addUserLabel() {
|
||||
if (!this.labelsDialog.data.name) {
|
||||
|
||||
@@ -198,7 +198,7 @@ window.PageUsers = {
|
||||
)
|
||||
.onOk(() => {
|
||||
const url = window.location.origin + '?reset_key=' + res.data
|
||||
this.copyText(url)
|
||||
this.utils.copyText(url)
|
||||
})
|
||||
})
|
||||
.catch(LNbits.utils.notifyApiError)
|
||||
@@ -347,7 +347,7 @@ window.PageUsers = {
|
||||
},
|
||||
copyWalletLink(walletId) {
|
||||
const url = `${window.location.origin}/wallet?usr=${this.activeWallet.userId}&wal=${walletId}`
|
||||
this.copyText(url)
|
||||
this.utils.copyText(url)
|
||||
},
|
||||
fetchUsers(props) {
|
||||
this.relaxFilterForFields(['username', 'email'])
|
||||
|
||||
Reference in New Issue
Block a user