Skip to content

Commit eca5126

Browse files
committed
refac
1 parent d577ff1 commit eca5126

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/components/chat/MessageInput.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
import CommandSuggestionList from './MessageInput/CommandSuggestionList.svelte';
9696
import Knobs from '../icons/Knobs.svelte';
9797
import ValvesModal from '../workspace/common/ValvesModal.svelte';
98-
import PageEdit from '../icons/PageEdit.svelte';
98+
import Note from '../icons/Note.svelte';
9999
import { goto } from '$app/navigation';
100100
import InputModal from '../common/InputModal.svelte';
101101
import Expand from '../icons/Expand.svelte';
@@ -1834,19 +1834,19 @@
18341834
</Tooltip>
18351835
</div>
18361836
{:else}
1837-
{#if prompt !== '' && !history?.currentId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
1837+
{#if prompt !== '' && !history?.currentId && !$selectedTerminalId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
18381838
<!-- {$i18n.t('Create Note')} -->
18391839
<Tooltip content={$i18n.t('Create note')} className=" flex items-center">
18401840
<button
18411841
id="create-note-button"
1842-
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"
1842+
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"
18431843
type="button"
18441844
disabled={prompt === '' && files.length === 0}
18451845
on:click={() => {
18461846
createNote();
18471847
}}
18481848
>
1849-
<PageEdit className="size-4.5 translate-y-[0.5px]" />
1849+
<Note className="size-4.5 translate-y-[0.5px]" />
18501850
</button>
18511851
</Tooltip>
18521852
{/if}

0 commit comments

Comments
 (0)