mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
refac: conditionally display update password
This commit is contained in:
parent
0845b7ffe5
commit
7fb0228ac8
1 changed files with 5 additions and 3 deletions
|
|
@ -268,9 +268,11 @@
|
||||||
|
|
||||||
<hr class="border-gray-50 dark:border-gray-850 my-2" />
|
<hr class="border-gray-50 dark:border-gray-850 my-2" />
|
||||||
|
|
||||||
<div class="my-2">
|
{#if $config?.features.enable_login_form}
|
||||||
<UpdatePassword />
|
<div class="my-2">
|
||||||
</div>
|
<UpdatePassword />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'}
|
{#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'}
|
||||||
<div class="flex justify-between items-center text-sm mb-2">
|
<div class="flex justify-between items-center text-sm mb-2">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue