Tweak: moved custom denomination to fakewallet funding source (#3030)

This commit is contained in:
Arc 2025-03-12 11:10:58 +00:00 committed by GitHub
parent b759ec7468
commit 1833adc0a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 14 deletions

View file

@ -53,17 +53,6 @@
:label="$t('lnbits_wallet')" :label="$t('lnbits_wallet')"
></q-input> ></q-input>
</div> </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"> <div class="col-12 col-md-4">
<p><span v-text="$t('ui_qr_code_logo')"></span></p> <p><span v-text="$t('ui_qr_code_logo')"></span></p>
<q-input <q-input

View file

@ -271,7 +271,6 @@ class ThemesSettings(LNbitsSettings):
class OpsSettings(LNbitsSettings): class OpsSettings(LNbitsSettings):
lnbits_baseurl: str = Field(default="http://127.0.0.1:5000/") lnbits_baseurl: str = Field(default="http://127.0.0.1:5000/")
lnbits_hide_api: bool = Field(default=False) lnbits_hide_api: bool = Field(default=False)
lnbits_denomination: str = Field(default="sats")
class FeeSettings(LNbitsSettings): class FeeSettings(LNbitsSettings):
@ -418,6 +417,7 @@ class NotificationsSettings(LNbitsSettings):
class FakeWalletFundingSource(LNbitsSettings): class FakeWalletFundingSource(LNbitsSettings):
fake_wallet_secret: str = Field(default="ToTheMoon1") fake_wallet_secret: str = Field(default="ToTheMoon1")
lnbits_denomination: str = Field(default="sats")
class LNbitsFundingSource(LNbitsSettings): class LNbitsFundingSource(LNbitsSettings):

File diff suppressed because one or more lines are too long

View file

@ -37,7 +37,8 @@ window.app.component('lnbits-funding-sources', {
'FakeWallet', 'FakeWallet',
'Fake Wallet', 'Fake Wallet',
{ {
fake_wallet_secret: 'Secret' fake_wallet_secret: 'Secret',
lnbits_denomination: '"sats" or 3 Letter Custom Denomination'
} }
], ],
[ [