refac: hide signup when ENABLE_SIGNUP false

This commit is contained in:
Timothy J. Baek
2024-05-26 03:13:13 -07:00
parent 83107c8ea5
commit 7b81271b9e
5 changed files with 29 additions and 33 deletions
@@ -34,7 +34,7 @@
<div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Database')}</div>
{#if $config?.admin_export_enabled ?? true}
{#if $config?.enable_admin_export ?? true}
<div class=" flex w-full justify-between">
<!-- <div class=" self-center text-xs font-medium">{$i18n.t('Allow Chat Deletion')}</div> -->
@@ -693,7 +693,7 @@
</button>
</Tooltip>
{#if $config.images && !readOnly}
{#if $config.enable_image_generation && !readOnly}
<Tooltip content="Generate Image" placement="bottom">
<button
class="{isLastMessage
+1 -1
View File
@@ -133,7 +133,7 @@ type Config = {
images?: boolean;
default_models?: string[];
default_prompt_suggestions?: PromptSuggestion[];
trusted_header_auth?: boolean;
auth_trusted_header?: boolean;
model_config?: GlobalModelConfig;
};