Make funding source fields more explicit (#3676)
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
parent
91ac245307
commit
168cb726b1
3 changed files with 80 additions and 10 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -89,8 +89,14 @@ window.app.component('lnbits-admin-funding-sources', {
|
|||
lnd_rest_cert: 'Certificate',
|
||||
lnd_rest_macaroon: 'Macaroon',
|
||||
lnd_rest_macaroon_encrypted: 'Encrypted Macaroon',
|
||||
lnd_rest_route_hints: 'Enable Route Hints',
|
||||
lnd_rest_allow_self_payment: 'Allow Self Payment'
|
||||
lnd_rest_route_hints: {
|
||||
advanced: true,
|
||||
label: 'Enable Route Hints'
|
||||
},
|
||||
lnd_rest_allow_self_payment: {
|
||||
advanced: true,
|
||||
label: 'Allow Self Payment'
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
|
|
@ -160,14 +166,27 @@ window.app.component('lnbits-admin-funding-sources', {
|
|||
'BoltzWallet',
|
||||
'Boltz',
|
||||
{
|
||||
boltz_client_endpoint: 'Endpoint',
|
||||
boltz_client_macaroon: 'Admin Macaroon path or hex',
|
||||
boltz_client_cert: 'Certificate path or hex',
|
||||
boltz_client_password: 'Wallet Password (can be empty)',
|
||||
boltz_client_endpoint: {
|
||||
label: 'Boltz client endpoint',
|
||||
value: '127.0.0.1:9002'
|
||||
},
|
||||
boltz_client_macaroon: {
|
||||
label: 'Admin Macaroon path or hex',
|
||||
value: '/home/ubuntu/.boltz/macaroons/admin.macaroon'
|
||||
},
|
||||
boltz_client_cert: {
|
||||
label: 'Certificate path or hex',
|
||||
value: '/home/ubuntu/.boltz/tls.cert'
|
||||
},
|
||||
boltz_mnemonic: {
|
||||
label: 'Liquid mnemonic (copy into greenwallet)',
|
||||
label: 'Liquid seed phrase',
|
||||
hint: 'Boltz will fetch once connected, but you can change later (can be opened in a liquid wallet) ',
|
||||
copy: true,
|
||||
qrcode: true
|
||||
},
|
||||
boltz_client_password: {
|
||||
label: 'Wallet Password (optional)',
|
||||
advanced: true
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@
|
|||
>
|
||||
<div
|
||||
class="row"
|
||||
v-for="([key, prop], i) in Object.entries(fundingSources.get(fund))"
|
||||
v-for="([key, prop], i) in Object.entries(
|
||||
fundingSources.get(fund)
|
||||
).filter(([, p]) => !p.advanced)"
|
||||
:key="i"
|
||||
>
|
||||
<div class="col-12">
|
||||
|
|
@ -46,7 +48,7 @@
|
|||
:type="hideInput ? 'password' : 'text'"
|
||||
:label="prop.label"
|
||||
:hint="prop.hint"
|
||||
:readonly="prop.readonly || false"
|
||||
:value="prop.value"
|
||||
>
|
||||
<q-btn
|
||||
v-if="prop.copy"
|
||||
|
|
@ -69,6 +71,55 @@
|
|||
</q-input>
|
||||
</div>
|
||||
</div>
|
||||
<q-expansion-item
|
||||
v-if="
|
||||
Object.entries(fundingSources.get(fund)).some(([, p]) => p.advanced)
|
||||
"
|
||||
dense
|
||||
expand-separator
|
||||
icon="tune"
|
||||
label="Advanced"
|
||||
class="q-mt-sm"
|
||||
>
|
||||
<div
|
||||
class="row"
|
||||
v-for="([key, prop], i) in Object.entries(
|
||||
fundingSources.get(fund)
|
||||
).filter(([, p]) => p.advanced)"
|
||||
:key="`adv-${i}`"
|
||||
>
|
||||
<div class="col-12">
|
||||
<q-input
|
||||
v-model="formData[key]"
|
||||
filled
|
||||
class="q-mt-sm"
|
||||
:type="hideInput ? 'password' : 'text'"
|
||||
:label="prop.label"
|
||||
:hint="prop.hint"
|
||||
:readonly="prop.readonly || false"
|
||||
>
|
||||
<q-btn
|
||||
v-if="prop.copy"
|
||||
@click="utils.copyText(formData[key])"
|
||||
icon="content_copy"
|
||||
class="cursor-pointer"
|
||||
color="grey"
|
||||
flat
|
||||
dense
|
||||
></q-btn>
|
||||
<q-btn
|
||||
v-if="prop.qrcode"
|
||||
@click="showQRValue(formData[key])"
|
||||
icon="qr_code"
|
||||
class="cursor-pointer"
|
||||
color="grey"
|
||||
flat
|
||||
dense
|
||||
></q-btn>
|
||||
</q-input>
|
||||
</div>
|
||||
</div>
|
||||
</q-expansion-item>
|
||||
</div>
|
||||
</q-list>
|
||||
<q-dialog v-model="showQRDialog">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue