Tweak: moved custom denomination to fakewallet funding source (#3030)
This commit is contained in:
parent
b759ec7468
commit
1833adc0a1
4 changed files with 4 additions and 14 deletions
|
|
@ -53,17 +53,6 @@
|
|||
:label="$t('lnbits_wallet')"
|
||||
></q-input>
|
||||
</div>
|
||||
<div class="col-12 col-md-4">
|
||||
<p><span v-text="$t('denomination')"></span></p>
|
||||
<q-input
|
||||
filled
|
||||
type="text"
|
||||
v-model="formData.lnbits_denomination"
|
||||
label="sats"
|
||||
:hint="$t('denomination_hint')"
|
||||
:rules="[(val) => !val || val.length == 3 || val == 'sats' || $t('denomination_error')]"
|
||||
></q-input>
|
||||
</div>
|
||||
<div class="col-12 col-md-4">
|
||||
<p><span v-text="$t('ui_qr_code_logo')"></span></p>
|
||||
<q-input
|
||||
|
|
|
|||
|
|
@ -271,7 +271,6 @@ class ThemesSettings(LNbitsSettings):
|
|||
class OpsSettings(LNbitsSettings):
|
||||
lnbits_baseurl: str = Field(default="http://127.0.0.1:5000/")
|
||||
lnbits_hide_api: bool = Field(default=False)
|
||||
lnbits_denomination: str = Field(default="sats")
|
||||
|
||||
|
||||
class FeeSettings(LNbitsSettings):
|
||||
|
|
@ -418,6 +417,7 @@ class NotificationsSettings(LNbitsSettings):
|
|||
|
||||
class FakeWalletFundingSource(LNbitsSettings):
|
||||
fake_wallet_secret: str = Field(default="ToTheMoon1")
|
||||
lnbits_denomination: str = Field(default="sats")
|
||||
|
||||
|
||||
class LNbitsFundingSource(LNbitsSettings):
|
||||
|
|
|
|||
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
|
|
@ -37,7 +37,8 @@ window.app.component('lnbits-funding-sources', {
|
|||
'FakeWallet',
|
||||
'Fake Wallet',
|
||||
{
|
||||
fake_wallet_secret: 'Secret'
|
||||
fake_wallet_secret: 'Secret',
|
||||
lnbits_denomination: '"sats" or 3 Letter Custom Denomination'
|
||||
}
|
||||
],
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue