ソースを参照

refac: conditionally display update password

Timothy Jaeryang Baek 1 ヶ月 前
コミット
7fb0228ac8
1 ファイル変更5 行追加3 行削除
  1. 5 3
      src/lib/components/chat/Settings/Account.svelte

+ 5 - 3
src/lib/components/chat/Settings/Account.svelte

@@ -268,9 +268,11 @@
 
 		<hr class="border-gray-50 dark:border-gray-850 my-2" />
 
-		<div class="my-2">
-			<UpdatePassword />
-		</div>
+		{#if $config?.features.enable_login_form}
+			<div class="my-2">
+				<UpdatePassword />
+			</div>
+		{/if}
 
 		{#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'}
 			<div class="flex justify-between items-center text-sm mb-2">