fix if for voidwallet warning
This commit is contained in:
parent
8410776ffb
commit
235513f2ef
2 changed files with 3 additions and 0 deletions
|
|
@ -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"] = settings.lnbits_ad_space.split(",")
|
||||||
t.env.globals["AD_SPACE_TITLE"] = settings.lnbits_ad_space_title
|
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["HIDE_API"] = settings.lnbits_hide_api
|
||||||
t.env.globals["SITE_TITLE"] = settings.lnbits_site_title
|
t.env.globals["SITE_TITLE"] = settings.lnbits_site_title
|
||||||
t.env.globals["LNBITS_DENOMINATION"] = settings.lnbits_denomination
|
t.env.globals["LNBITS_DENOMINATION"] = settings.lnbits_denomination
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,11 @@
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-toolbar-title>
|
</q-toolbar-title>
|
||||||
{% block beta %}
|
{% block beta %}
|
||||||
|
{% if VOIDWALLET %}
|
||||||
<q-badge color="red" text-color="black" class="q-mr-md">
|
<q-badge color="red" text-color="black" class="q-mr-md">
|
||||||
<span>VoidWallet is active! Payments disabled</span>
|
<span>VoidWallet is active! Payments disabled</span>
|
||||||
</q-badge>
|
</q-badge>
|
||||||
|
{%endif%}
|
||||||
<q-badge color="yellow" text-color="black" class="q-mr-md">
|
<q-badge color="yellow" text-color="black" class="q-mr-md">
|
||||||
<span
|
<span
|
||||||
><span v-show="$q.screen.gt.sm"
|
><span v-show="$q.screen.gt.sm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue