Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
783d8cf7
"vscode:/vscode.git/clone" did not exist on "ad5f2fe34cf2b3564a2d71500a7a096e25065734"
Commit
783d8cf7
authored
Feb 07, 2024
by
Timothy J. Baek
Browse files
refac
parent
e1d4c87f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
src/lib/components/chat/Messages/UserMessage.svelte
src/lib/components/chat/Messages/UserMessage.svelte
+7
-13
No files found.
src/lib/components/chat/Messages/UserMessage.svelte
View file @
783d8cf7
...
...
@@ -4,7 +4,7 @@
import { tick } from 'svelte';
import Name from './Name.svelte';
import ProfileImage from './ProfileImage.svelte';
import { modelfiles, settings
, user as userStore
} from '$lib/stores';
import { modelfiles, settings } from '$lib/stores';
export let user;
export let message;
...
...
@@ -57,20 +57,14 @@
{#if message.user}
{#if $modelfiles.map((modelfile) => modelfile.tagName).includes(message.user)}
{$modelfiles.find((modelfile) => modelfile.tagName === message.user)?.title}
{:else}
{#if $settings.showUsername}
{$userStore.name}
{:else}
You <span class=" text-gray-500 text-sm font-medium">{message?.user ?? ''}</span>
{/if}
{/if}
{:else}
{#if $settings.showUsername}
{$userStore.name}
{:else if $settings.showUsername}
{user.name}
{:else}
You
{/if}
{/if}
{#if message.timestamp}
<span class=" invisible group-hover:visible text-gray-400 text-xs font-medium">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment