fix: restore user type badge (#2861)

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Tiago Vasconcelos
2025-01-10 10:55:05 +00:00
committed by GitHub
parent 0574837950
commit 91748fc891
3 changed files with 6 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@@ -203,7 +203,7 @@ window.LNbits = {
email: data.email, email: data.email,
extensions: data.extensions, extensions: data.extensions,
wallets: data.wallets, wallets: data.wallets,
admin: data.admin super_user: data.super_user
} }
const mapWallet = this.wallet const mapWallet = this.wallet
obj.wallets = obj.wallets obj.wallets = obj.wallets

View File

@@ -51,12 +51,10 @@
{%else%} {% if SITE_TITLE != 'LNbits' %} {{ SITE_TITLE }} {% {%else%} {% if SITE_TITLE != 'LNbits' %} {{ SITE_TITLE }} {%
else %} else %}
<span><strong>LN</strong>bits</span> {% endif %} {%endif%} </q-btn <span><strong>LN</strong>bits</span> {% endif %} {%endif%} </q-btn
>{% endblock %} {% block toolbar_subtitle %}{%if user and >{% endblock %} {% block toolbar_subtitle %}
user.super_user%} <q-badge v-if="g.user && g.user.super_user">Super User</q-badge>
<q-badge align="middle">Super User</q-badge> <q-badge v-else-if="g.user && g.user.admin">Admin User</q-badge>
{% elif user and user.admin %} {% endblock %}
<q-badge align="middle">Admin User</q-badge>
{%endif%}{% endblock %}
</q-toolbar-title> </q-toolbar-title>
{% block beta %} {% if VOIDWALLET %} {% block beta %} {% if VOIDWALLET %}
<q-badge <q-badge
@@ -99,7 +97,6 @@
<q-badge v-if="g.offline" color="red" class="q-mr-md"> <q-badge v-if="g.offline" color="red" class="q-mr-md">
<span>OFFLINE</span> <span>OFFLINE</span>
</q-badge> </q-badge>
<q-btn-dropdown <q-btn-dropdown
v-if="isUserAuthorized" v-if="isUserAuthorized"
dense dense