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,
extensions: data.extensions,
wallets: data.wallets,
admin: data.admin
super_user: data.super_user
}
const mapWallet = this.wallet
obj.wallets = obj.wallets

View File

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