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
+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'])