Removed LNbits wallets balance screen from options
This commit is contained in:
parent
79e98c2f6c
commit
5ae4353a70
2 changed files with 0 additions and 19 deletions
|
|
@ -180,17 +180,6 @@
|
||||||
label="Show the dashboard"
|
label="Show the dashboard"
|
||||||
></q-toggle>
|
></q-toggle>
|
||||||
|
|
||||||
<q-expansion-item
|
|
||||||
expand-separator
|
|
||||||
icon="perm_identity"
|
|
||||||
label="LNbits Wallets"
|
|
||||||
>
|
|
||||||
<q-toggle
|
|
||||||
v-model="formDialog.data.display_preferences.lnbits_wallets_balance"
|
|
||||||
label="Show LNbits wallet balances"
|
|
||||||
></q-toggle>
|
|
||||||
|
|
||||||
</q-expansion-item>
|
|
||||||
<q-toggle
|
<q-toggle
|
||||||
v-model="formDialog.data.display_preferences.fun_satoshi_quotes"
|
v-model="formDialog.data.display_preferences.fun_satoshi_quotes"
|
||||||
label="Satoshi Quotes"
|
label="Satoshi Quotes"
|
||||||
|
|
@ -551,7 +540,6 @@
|
||||||
data: {
|
data: {
|
||||||
display_preferences: {
|
display_preferences: {
|
||||||
dashboard: true,
|
dashboard: true,
|
||||||
lnbits_wallets_balance: true,
|
|
||||||
fun_satoshi_quotes: true,
|
fun_satoshi_quotes: true,
|
||||||
fun_exchange_market_rate: true,
|
fun_exchange_market_rate: true,
|
||||||
onchain_difficulty_epoch_progress: true,
|
onchain_difficulty_epoch_progress: true,
|
||||||
|
|
|
||||||
|
|
@ -170,13 +170,6 @@ async def get_screen_data(screen_num: int, screens_list: dict, gerty):
|
||||||
if screen_slug == "dashboard":
|
if screen_slug == "dashboard":
|
||||||
title = gerty.name
|
title = gerty.name
|
||||||
areas = await get_dashboard(gerty)
|
areas = await get_dashboard(gerty)
|
||||||
if screen_slug == "lnbits_wallets_balance":
|
|
||||||
wallets = await get_lnbits_wallet_balances(gerty)
|
|
||||||
text = []
|
|
||||||
for wallet in wallets:
|
|
||||||
text.append(get_text_item_dict("{0}'s Wallet".format(wallet['name']), 20))
|
|
||||||
text.append(get_text_item_dict("{0} sats".format(format_number(wallet['balance'])), 40))
|
|
||||||
areas.append(text)
|
|
||||||
elif screen_slug == "fun_satoshi_quotes":
|
elif screen_slug == "fun_satoshi_quotes":
|
||||||
areas.append(await get_satoshi_quotes())
|
areas.append(await get_satoshi_quotes())
|
||||||
elif screen_slug == "fun_exchange_market_rate":
|
elif screen_slug == "fun_exchange_market_rate":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue