mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
UI: hide paste payment request in unsupported environments (#1853)
This commit is contained in:
parent
772ae2a1ab
commit
03acf5e5ec
@ -137,6 +137,9 @@ new Vue({
|
||||
comment: ''
|
||||
},
|
||||
paymentChecker: null,
|
||||
copy: {
|
||||
show: false
|
||||
},
|
||||
camera: {
|
||||
show: false,
|
||||
camera: 'auto'
|
||||
@ -302,6 +305,8 @@ new Vue({
|
||||
this.parse.invoice = null
|
||||
this.parse.lnurlpay = null
|
||||
this.parse.lnurlauth = null
|
||||
this.parse.copy.show =
|
||||
window.isSecureContext && navigator.clipboard?.readText !== undefined
|
||||
this.parse.data.request = ''
|
||||
this.parse.data.comment = ''
|
||||
this.parse.data.paymentChecker = null
|
||||
|
@ -726,6 +726,7 @@
|
||||
name="content_paste"
|
||||
color="grey"
|
||||
class="q-mt-xs q-ml-sm q-mr-auto"
|
||||
v-if="parse.copy.show"
|
||||
@click="pasteToTextArea"
|
||||
><q-tooltip
|
||||
>{% raw %}{{$t('paste_from_clipboard')}}{% endraw
|
||||
|
Loading…
x
Reference in New Issue
Block a user