feat: improve VoidWallet warning visibility on all devices (#3428)
This commit is contained in:
parent
87f25ea715
commit
f794373d30
3 changed files with 22 additions and 9 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -72,6 +72,10 @@ window.localisation.en = {
|
|||
donate: 'Donate',
|
||||
view_github: 'View on GitHub',
|
||||
voidwallet_active: 'VoidWallet is active! Payments disabled',
|
||||
voidwallet_active_user:
|
||||
'Funding source unavailable. Please contact your admin to configure.',
|
||||
voidwallet_active_admin:
|
||||
'Funding source unavailable. Click here to configure.',
|
||||
service_fee_badge: 'Service fee: {amount} % per transaction',
|
||||
service_fee_max_badge:
|
||||
'Service fee: {amount} % per transaction (max {max} {denom})',
|
||||
|
|
|
|||
|
|
@ -92,6 +92,22 @@
|
|||
<div id="vue">
|
||||
<q-layout view="hHh lpR lfr" v-cloak>
|
||||
<q-header bordered class="bg-marginal-bg">
|
||||
<!-- VoidWallet Warning Banner -->
|
||||
{% if VOIDWALLET %}
|
||||
<q-banner v-if="g.user" class="bg-warning text-white" dense>
|
||||
<template v-slot:avatar>
|
||||
<q-icon name="warning" color="white" />
|
||||
</template>
|
||||
<a
|
||||
v-if="g.user && (g.user.super_user || g.user.admin)"
|
||||
href="/admin"
|
||||
style="color: white; text-decoration: underline; cursor: pointer"
|
||||
v-text="$t('voidwallet_active_admin')"
|
||||
></a>
|
||||
<span v-else v-text="$t('voidwallet_active_user')"></span>
|
||||
</q-banner>
|
||||
{% endif %}
|
||||
|
||||
<q-toolbar>
|
||||
{% block drawer_toggle %}
|
||||
<q-btn
|
||||
|
|
@ -115,14 +131,7 @@
|
|||
<q-badge v-else-if="g.user && g.user.admin">Admin User</q-badge>
|
||||
{% endblock %}
|
||||
</q-toolbar-title>
|
||||
{% block beta %} {% if VOIDWALLET %}
|
||||
<q-badge
|
||||
v-text="$t('voidwallet_active')"
|
||||
color="red"
|
||||
class="q-mr-md gt-md"
|
||||
>
|
||||
</q-badge>
|
||||
{%endif%} {% if LNBITS_CUSTOM_BADGE is not none and
|
||||
{% block beta %} {% if LNBITS_CUSTOM_BADGE is not none and
|
||||
LNBITS_CUSTOM_BADGE != "" %}
|
||||
<q-badge
|
||||
v-show="$q.screen.gt.sm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue