feat: add setting lnbits_allow_new_accounts to admin ui (#2252)

added to users tab of admin ui
This commit is contained in:
dni ⚡ 2024-02-09 13:54:30 +01:00 committed by GitHub
parent cfe2b43d2a
commit 5edb845d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,6 @@
<q-btn @click="addAdminUser" dense flat icon="add"></q-btn>
</q-input>
<div>
{%raw%}
<q-chip
v-for="user in formData.lnbits_admin_users"
:key="user"
@ -24,10 +23,9 @@
@remove="removeAdminUser(user)"
color="primary"
text-color="white"
v-text="user"
>
{{ user }}
</q-chip>
{%endraw%}
</div>
<br />
</div>
@ -44,7 +42,6 @@
<q-btn @click="addAllowedUser" dense flat icon="add"></q-btn>
</q-input>
<div>
{% raw %}
<q-chip
v-for="user in formData.lnbits_allowed_users"
:key="user"
@ -52,12 +49,29 @@
@remove="removeAllowedUser(user)"
color="primary"
text-color="white"
v-text="user"
>
{{ user }}
</q-chip>
{% endraw %}
</div>
<br />
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Allow creation of new users</q-item-label>
<q-item-label caption
>Allow creation of new users on the index page</q-item-label
>
</q-item-section>
<q-item-section avatar>
<q-toggle
size="md"
v-model="formData.lnbits_allow_new_accounts"
checked-icon="check"
color="green"
unchecked-icon="clear"
/>
</q-item-section>
</q-item>
<br />
</div>
</div>
</q-card-section>