refac
This commit is contained in:
@@ -2172,23 +2172,6 @@
|
||||
</Tooltip>
|
||||
</div>
|
||||
{:else}
|
||||
{#if prompt !== '' && !history?.currentId && !$selectedTerminalId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
|
||||
<!-- {$i18n.t('Create Note')} -->
|
||||
<Tooltip content={$i18n.t('Create note')} className=" flex items-center">
|
||||
<button
|
||||
id="create-note-button"
|
||||
class=" text-gray-500 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-[5px] -mr-1 self-center"
|
||||
type="button"
|
||||
disabled={prompt === '' && files.length === 0}
|
||||
on:click={() => {
|
||||
createNote();
|
||||
}}
|
||||
>
|
||||
<Note className="size-4.5 translate-y-[0.5px]" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
{#if !history?.currentId || history.messages[history.currentId]?.done == true}
|
||||
{#if $_user?.role === 'admin' || ($_user?.permissions?.chat?.stt ?? true)}
|
||||
<!-- {$i18n.t('Record voice')} -->
|
||||
|
||||
Reference in New Issue
Block a user