fix if for voidwallet warning

This commit is contained in:
dni ⚡ 2023-03-07 12:28:52 +01:00
parent 8410776ffb
commit 235513f2ef
No known key found for this signature in database
GPG Key ID: 886317704CC4E618
2 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,7 @@ def template_renderer(additional_folders: List = None) -> Jinja2Templates:
t.env.globals["AD_SPACE"] = settings.lnbits_ad_space.split(",")
t.env.globals["AD_SPACE_TITLE"] = settings.lnbits_ad_space_title
t.env.globals["VOIDWALLET"] = settings.lnbits_backend_wallet_class == "VoidWallet"
t.env.globals["HIDE_API"] = settings.lnbits_hide_api
t.env.globals["SITE_TITLE"] = settings.lnbits_site_title
t.env.globals["LNBITS_DENOMINATION"] = settings.lnbits_denomination

View File

@ -45,9 +45,11 @@
</q-btn>
</q-toolbar-title>
{% block beta %}
{% if VOIDWALLET %}
<q-badge color="red" text-color="black" class="q-mr-md">
<span>VoidWallet is active! Payments disabled</span>
</q-badge>
{%endif%}
<q-badge color="yellow" text-color="black" class="q-mr-md">
<span
><span v-show="$q.screen.gt.sm"