refac
This commit is contained in:
@@ -225,7 +225,24 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>#{channel?.name ?? 'Channel'} • Open WebUI</title>
|
||||
{#if channel?.type === 'dm'}
|
||||
<title
|
||||
>{channel?.name.trim() ||
|
||||
channel?.users.reduce((a, e, i, arr) => {
|
||||
if (e.id === $user?.id) {
|
||||
return a;
|
||||
}
|
||||
|
||||
if (a) {
|
||||
return `${a}, ${e.name}`;
|
||||
} else {
|
||||
return e.name;
|
||||
}
|
||||
}, '')} • Open WebUI</title
|
||||
>
|
||||
{:else}
|
||||
<title>#{channel?.name ?? 'Channel'} • Open WebUI</title>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
|
||||
@@ -173,12 +173,6 @@
|
||||
{/if}
|
||||
</div>
|
||||
</button>
|
||||
|
||||
<button type="button" class="px-2.5 py-2 cursor-pointer select-none">
|
||||
<div class="flex gap-1.5 items-center">
|
||||
{$i18n.t('MBR')}
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
|
||||
Reference in New Issue
Block a user