Compare commits
3
Commits
dev
...
fix/qr_on_new_tab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a8f7b9b0a | ||
|
|
aee87c9aa6 | ||
|
|
6b55a65513 |
+1
-1
File diff suppressed because one or more lines are too long
@@ -24,6 +24,10 @@ window.app.component('lnbits-qrcode', {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
newTab: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
margin: {
|
||||
type: Number,
|
||||
default: 3
|
||||
@@ -80,10 +84,13 @@ window.app.component('lnbits-qrcode', {
|
||||
printWindow.close()
|
||||
},
|
||||
clickQrCode(event) {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
if (this.href === '') {
|
||||
this.utils.copyText(this.value)
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
return false
|
||||
} else if (this.href) {
|
||||
window.open(this.href, this.newTab ? '_blank' : '_self')
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user