refactor: use utils.copytext (#3590)

This commit is contained in:
dni ⚡
2025-11-27 12:31:14 +01:00
committed by GitHub
parent e6ca8a33c6
commit 704e5a1b73
17 changed files with 50 additions and 40 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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'
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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'])