mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-27 16:04:50 -06:00
refac
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
import CommandSuggestionList from './MessageInput/CommandSuggestionList.svelte';
|
||||
import Knobs from '../icons/Knobs.svelte';
|
||||
import ValvesModal from '../workspace/common/ValvesModal.svelte';
|
||||
import PageEdit from '../icons/PageEdit.svelte';
|
||||
import Note from '../icons/Note.svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
import InputModal from '../common/InputModal.svelte';
|
||||
import Expand from '../icons/Expand.svelte';
|
||||
@@ -1834,19 +1834,19 @@
|
||||
</Tooltip>
|
||||
</div>
|
||||
{:else}
|
||||
{#if prompt !== '' && !history?.currentId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
|
||||
{#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-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-1.5 self-center"
|
||||
class=" text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300 transition rounded-full p-1.5 -mr-1 self-center"
|
||||
type="button"
|
||||
disabled={prompt === '' && files.length === 0}
|
||||
on:click={() => {
|
||||
createNote();
|
||||
}}
|
||||
>
|
||||
<PageEdit className="size-4.5 translate-y-[0.5px]" />
|
||||
<Note className="size-4.5 translate-y-[0.5px]" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user