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_cert: 'Certificate',
|
||||||
lnd_rest_macaroon: 'Macaroon',
|
lnd_rest_macaroon: 'Macaroon',
|
||||||
lnd_rest_macaroon_encrypted: 'Encrypted Macaroon',
|
lnd_rest_macaroon_encrypted: 'Encrypted Macaroon',
|
||||||
lnd_rest_route_hints: 'Enable Route Hints',
|
lnd_rest_route_hints: {
|
||||||
lnd_rest_allow_self_payment: 'Allow Self Payment'
|
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',
|
'BoltzWallet',
|
||||||
'Boltz',
|
'Boltz',
|
||||||
{
|
{
|
||||||
boltz_client_endpoint: 'Endpoint',
|
boltz_client_endpoint: {
|
||||||
boltz_client_macaroon: 'Admin Macaroon path or hex',
|
label: 'Boltz client endpoint',
|
||||||
boltz_client_cert: 'Certificate path or hex',
|
value: '127.0.0.1:9002'
|
||||||
boltz_client_password: 'Wallet Password (can be empty)',
|
},
|
||||||
|
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: {
|
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,
|
copy: true,
|
||||||
qrcode: true
|
qrcode: true
|
||||||
|
},
|
||||||
|
boltz_client_password: {
|
||||||
|
label: 'Wallet Password (optional)',
|
||||||
|
advanced: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,58 @@
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="row"
|
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"
|
:key="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"
|
||||||
|
:value="prop.value"
|
||||||
|
>
|
||||||
|
<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
|
||||||
|
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">
|
<div class="col-12">
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -69,6 +119,7 @@
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</q-expansion-item>
|
||||||
</div>
|
</div>
|
||||||
</q-list>
|
</q-list>
|
||||||
<q-dialog v-model="showQRDialog">
|
<q-dialog v-model="showQRDialog">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue