refac
This commit is contained in:
@@ -250,27 +250,6 @@
|
|||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<button
|
|
||||||
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition cursor-pointer select-none"
|
|
||||||
type="button"
|
|
||||||
on:click={async () => {
|
|
||||||
show = false;
|
|
||||||
|
|
||||||
dispatch('show', 'archived-chat');
|
|
||||||
|
|
||||||
if ($mobile) {
|
|
||||||
await tick();
|
|
||||||
|
|
||||||
showSidebar.set(false);
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div class=" self-center mr-3">
|
|
||||||
<ArchiveBox className="size-5" strokeWidth="1.5" />
|
|
||||||
</div>
|
|
||||||
<div class=" self-center truncate">{$i18n.t('Archived Chats')}</div>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{#if role === 'admin'}
|
{#if role === 'admin'}
|
||||||
<a
|
<a
|
||||||
href="/playground"
|
href="/playground"
|
||||||
@@ -294,6 +273,30 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class=" self-center truncate">{$i18n.t('Playground')}</div>
|
<div class=" self-center truncate">{$i18n.t('Playground')}</div>
|
||||||
</a>
|
</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition cursor-pointer select-none"
|
||||||
|
type="button"
|
||||||
|
on:click={async () => {
|
||||||
|
show = false;
|
||||||
|
|
||||||
|
dispatch('show', 'archived-chat');
|
||||||
|
|
||||||
|
if ($mobile) {
|
||||||
|
await tick();
|
||||||
|
|
||||||
|
showSidebar.set(false);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div class=" self-center mr-3">
|
||||||
|
<ArchiveBox className="size-5" strokeWidth="1.5" />
|
||||||
|
</div>
|
||||||
|
<div class=" self-center truncate">{$i18n.t('Archived Chats')}</div>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{#if role === 'admin'}
|
||||||
<a
|
<a
|
||||||
href="/admin"
|
href="/admin"
|
||||||
draggable="false"
|
draggable="false"
|
||||||
|
|||||||
Reference in New Issue
Block a user