mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-28 18:52:00 +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: ''
|
comment: ''
|
||||||
},
|
},
|
||||||
paymentChecker: null,
|
paymentChecker: null,
|
||||||
|
copy: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
camera: {
|
camera: {
|
||||||
show: false,
|
show: false,
|
||||||
camera: 'auto'
|
camera: 'auto'
|
||||||
@ -302,6 +305,8 @@ new Vue({
|
|||||||
this.parse.invoice = null
|
this.parse.invoice = null
|
||||||
this.parse.lnurlpay = null
|
this.parse.lnurlpay = null
|
||||||
this.parse.lnurlauth = null
|
this.parse.lnurlauth = null
|
||||||
|
this.parse.copy.show =
|
||||||
|
window.isSecureContext && navigator.clipboard?.readText !== undefined
|
||||||
this.parse.data.request = ''
|
this.parse.data.request = ''
|
||||||
this.parse.data.comment = ''
|
this.parse.data.comment = ''
|
||||||
this.parse.data.paymentChecker = null
|
this.parse.data.paymentChecker = null
|
||||||
|
@ -726,6 +726,7 @@
|
|||||||
name="content_paste"
|
name="content_paste"
|
||||||
color="grey"
|
color="grey"
|
||||||
class="q-mt-xs q-ml-sm q-mr-auto"
|
class="q-mt-xs q-ml-sm q-mr-auto"
|
||||||
|
v-if="parse.copy.show"
|
||||||
@click="pasteToTextArea"
|
@click="pasteToTextArea"
|
||||||
><q-tooltip
|
><q-tooltip
|
||||||
>{% raw %}{{$t('paste_from_clipboard')}}{% endraw
|
>{% raw %}{{$t('paste_from_clipboard')}}{% endraw
|
||||||
|
Loading…
x
Reference in New Issue
Block a user