fix if for voidwallet warning
This commit is contained in:
parent
8410776ffb
commit
235513f2ef
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user